Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
80e01aaa
Commit
80e01aaa
authored
22 years ago
by
Alexander Viro
Committed by
Linus Torvalds
22 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] (2/6) alpha fixes
- missing defines/fields/includes for alpha (accumulated since 2.5.0)
parent
1f2b984d
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
2 deletions
+11
-2
arch/alpha/kernel/semaphore.c
arch/alpha/kernel/semaphore.c
+1
-1
include/asm-alpha/mman.h
include/asm-alpha/mman.h
+1
-0
include/asm-alpha/siginfo.h
include/asm-alpha/siginfo.h
+1
-0
include/asm-alpha/thread_info.h
include/asm-alpha/thread_info.h
+3
-0
include/asm-alpha/unistd.h
include/asm-alpha/unistd.h
+2
-1
init/main.c
init/main.c
+3
-0
No files found.
arch/alpha/kernel/semaphore.c
View file @
80e01aaa
...
...
@@ -5,9 +5,9 @@
* (C) Copyright 1999, 2000 Richard Henderson
*/
#include <linux/errno.h>
#include <linux/sched.h>
/*
* Semaphores are implemented using a two-way counter:
*
...
...
This diff is collapsed.
Click to expand it.
include/asm-alpha/mman.h
View file @
80e01aaa
...
...
@@ -4,6 +4,7 @@
#define PROT_READ 0x1
/* page can be read */
#define PROT_WRITE 0x2
/* page can be written */
#define PROT_EXEC 0x4
/* page can be executed */
#define PROT_SEM 0x8
/* page may be used for atomic ops */
#define PROT_NONE 0x0
/* page can not be accessed */
#define MAP_SHARED 0x01
/* Share changes */
...
...
This diff is collapsed.
Click to expand it.
include/asm-alpha/siginfo.h
View file @
80e01aaa
...
...
@@ -108,6 +108,7 @@ typedef struct siginfo {
#define SI_ASYNCIO -4
/* sent by AIO completion */
#define SI_SIGIO -5
/* sent by queued SIGIO */
#define SI_TKILL -6
/* sent by tkill system call */
#define SI_DETHREAD -7
/* sent by execve() killing subsidiary threads */
#define SI_FROMUSER(siptr) ((siptr)->si_code <= 0)
#define SI_FROMKERNEL(siptr) ((siptr)->si_code > 0)
...
...
This diff is collapsed.
Click to expand it.
include/asm-alpha/thread_info.h
View file @
80e01aaa
...
...
@@ -20,6 +20,7 @@ struct thread_info {
struct
exec_domain
*
exec_domain
;
/* execution domain */
mm_segment_t
addr_limit
;
/* thread address space */
int
cpu
;
/* current CPU */
int
preempt_count
;
/* 0 => preemptable, <0 => BUG */
int
bpt_nsaved
;
unsigned
long
bpt_addr
[
2
];
/* breakpoint handling */
...
...
@@ -53,6 +54,8 @@ register struct thread_info *__current_thread_info __asm__("$8");
#endif
/* __ASSEMBLY__ */
#define PREEMPT_ACTIVE 0x4000000
/*
* Thread information flags:
* - these are process state flags and used from assembly
...
...
This diff is collapsed.
Click to expand it.
include/asm-alpha/unistd.h
View file @
80e01aaa
...
...
@@ -528,6 +528,7 @@ static inline long dup(int fd)
static
inline
long
close
(
int
fd
)
{
extern
long
sys_close
(
unsigned
int
);
return
sys_close
(
fd
);
}
...
...
@@ -603,6 +604,6 @@ static inline long delete_module(const char *name)
* What we want is __attribute__((weak,alias("sys_ni_syscall"))),
* but it doesn't work on all toolchains, so we just do it by hand
*/
#define cond_syscall(x) asm
(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall"
);
#define cond_syscall(x) asm
linkage long x(void) __attribute__((weak,alias("sys_ni_syscall"))
);
#endif
/* _ALPHA_UNISTD_H */
This diff is collapsed.
Click to expand it.
init/main.c
View file @
80e01aaa
...
...
@@ -271,6 +271,9 @@ static void __init smp_init(void)
#else
#define smp_init() do { } while (0)
#endif
static
inline
void
setup_per_cpu_areas
(
void
)
{
}
static
inline
void
setup_per_cpu_areas
(
void
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment