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
a355eaae
Commit
a355eaae
authored
Apr 18, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into hera.kernel.org:/home/davem/BK/sparc-2.6
parents
d5b1f484
6af83b78
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
52 additions
and
13 deletions
+52
-13
arch/sparc/kernel/entry.S
arch/sparc/kernel/entry.S
+1
-1
arch/sparc/kernel/systbls.S
arch/sparc/kernel/systbls.S
+6
-1
arch/sparc64/kernel/Makefile
arch/sparc64/kernel/Makefile
+1
-1
arch/sparc64/kernel/binfmt_elf32.c
arch/sparc64/kernel/binfmt_elf32.c
+3
-0
arch/sparc64/kernel/entry.S
arch/sparc64/kernel/entry.S
+1
-1
arch/sparc64/kernel/sys32.S
arch/sparc64/kernel/sys32.S
+11
-0
arch/sparc64/kernel/systbls.S
arch/sparc64/kernel/systbls.S
+9
-2
include/asm-sparc/unistd.h
include/asm-sparc/unistd.h
+10
-3
include/asm-sparc64/system.h
include/asm-sparc64/system.h
+1
-1
include/asm-sparc64/unistd.h
include/asm-sparc64/unistd.h
+9
-3
No files found.
arch/sparc/kernel/entry.S
View file @
a355eaae
...
...
@@ -38,7 +38,7 @@
#define curptr g6
#define NR_SYSCALLS 2
7
3 /* Each OS is different... */
#define NR_SYSCALLS 2
8
3 /* Each OS is different... */
/*
These
are
just
handy
.
*/
#define _SV save %sp, -STACKFRAME_SZ, %sp
...
...
arch/sparc/kernel/systbls.S
View file @
a355eaae
...
...
@@ -73,7 +73,9 @@ sys_call_table:
/*
255
*/
.
long
sys_nis_syscall
,
sys_clock_settime
,
sys_clock_gettime
,
sys_clock_getres
,
sys_clock_nanosleep
/*
260
*/
.
long
sys_sched_getaffinity
,
sys_sched_setaffinity
,
sys_timer_settime
,
sys_timer_gettime
,
sys_timer_getoverrun
/*
265
*/
.
long
sys_timer_delete
,
sys_timer_create
,
sys_nis_syscall
,
sys_io_setup
,
sys_io_destroy
/*
270
*/
.
long
sys_io_submit
,
sys_io_cancel
,
sys_io_getevents
,
sys_nis_syscall
/*
270
*/
.
long
sys_io_submit
,
sys_io_cancel
,
sys_io_getevents
,
sys_mq_open
,
sys_mq_unlink
/*
275
*/
.
long
sys_mq_timedsend
,
sys_mq_timedreceive
,
sys_mq_notify
,
sys_mq_getsetattr
,
sys_ni_syscall
/*
280
*/
.
long
sys_ni_syscall
,
sys_ni_syscall
,
sys_ni_syscall
#ifdef CONFIG_SUNOS_EMUL
/
*
Now
the
SunOS
syscall
table
.
*/
...
...
@@ -175,6 +177,9 @@ sunos_sys_table:
.
long
sunos_nosys
,
sunos_nosys
,
sunos_nosys
.
long
sunos_nosys
/*
270
*/
.
long
sunos_nosys
,
sunos_nosys
,
sunos_nosys
.
long
sunos_nosys
,
sunos_nosys
,
sunos_nosys
.
long
sunos_nosys
,
sunos_nosys
,
sunos_nosys
.
long
sunos_nosys
/*
280
*/
.
long
sunos_nosys
,
sunos_nosys
,
sunos_nosys
#endif
arch/sparc64/kernel/Makefile
View file @
a355eaae
...
...
@@ -3,7 +3,7 @@
#
EXTRA_AFLAGS
:=
-ansi
#
EXTRA_CFLAGS := -Werror
EXTRA_CFLAGS
:=
-Werror
extra-y
:=
head.o init_task.o vmlinux.lds.s
...
...
arch/sparc64/kernel/binfmt_elf32.c
View file @
a355eaae
...
...
@@ -151,4 +151,7 @@ MODULE_AUTHOR("Eric Youngdale, David S. Miller, Jakub Jelinek");
#undef MODULE_DESCRIPTION
#undef MODULE_AUTHOR
#undef TASK_SIZE
#define TASK_SIZE 0xf0000000
#include "../../../fs/binfmt_elf.c"
arch/sparc64/kernel/entry.S
View file @
a355eaae
...
...
@@ -26,7 +26,7 @@
#define curptr g6
#define NR_SYSCALLS 2
7
3 /* Each OS is different... */
#define NR_SYSCALLS 2
8
3 /* Each OS is different... */
.
text
.
align
32
...
...
arch/sparc64/kernel/sys32.S
View file @
a355eaae
...
...
@@ -68,6 +68,17 @@ sys32_mmap2:
jmpl
%
g1
+
%
lo
(
sys_mmap
),
%
g0
sllx
%
o5
,
12
,
%
o5
.
globl
sys32_mq_timedsend
sys32_mq_timedsend
:
sethi
%
hi
(
compat_sys_mq_timedsend
),
%
g1
jmpl
%
g1
+
%
lo
(
compat_sys_mq_timedsend
),
%
g0
srl
%
o4
,
0
,
%
o4
.
globl
sys32_mq_timedreceive
sys32_mq_timedreceive
:
sethi
%
hi
(
compat_sys_mq_timedreceive
),
%
g1
jmpl
%
g1
+
%
lo
(
compat_sys_mq_timedreceive
),
%
g0
srl
%
o4
,
0
,
%
o4
.
align
32
.
globl
sys32_socketcall
sys32_socketcall
:
/
*
%
o0
=
call
,
%
o1
=
args
*/
...
...
arch/sparc64/kernel/systbls.S
View file @
a355eaae
...
...
@@ -73,7 +73,9 @@ sys_call_table32:
.
word
sys_ni_syscall
,
compat_clock_settime
,
compat_clock_gettime
,
compat_clock_getres
,
compat_clock_nanosleep
/*
260
*/
.
word
compat_sys_sched_getaffinity
,
compat_sys_sched_setaffinity
,
compat_timer_settime
,
compat_timer_gettime
,
sys_timer_getoverrun
.
word
sys_timer_delete
,
sys32_timer_create
,
sys_ni_syscall
,
compat_sys_io_setup
,
sys_io_destroy
/*
270
*/
.
word
compat_sys_io_submit
,
sys_io_cancel
,
compat_sys_io_getevents
,
sys_ni_syscall
/*
270
*/
.
word
compat_sys_io_submit
,
sys_io_cancel
,
compat_sys_io_getevents
,
compat_sys_mq_open
,
sys_mq_unlink
.
word
sys32_mq_timedsend
,
sys32_mq_timedreceive
,
compat_sys_mq_notify
,
compat_sys_mq_getsetattr
,
sys_ni_syscall
/*
280
*/
.
word
sys_ni_syscall
,
sys_ni_syscall
,
sys_ni_syscall
/
*
Now
the
64
-
bit
native
Linux
syscall
table
.
*/
...
...
@@ -135,7 +137,9 @@ sys_call_table:
.
word
sys_ni_syscall
,
sys_clock_settime
,
sys_clock_gettime
,
sys_clock_getres
,
sys_clock_nanosleep
/*
260
*/
.
word
sys_sched_getaffinity
,
sys_sched_setaffinity
,
sys_timer_settime
,
sys_timer_gettime
,
sys_timer_getoverrun
.
word
sys_timer_delete
,
sys_timer_create
,
sys_ni_syscall
,
sys_io_setup
,
sys_io_destroy
/*
270
*/
.
word
sys_io_submit
,
sys_io_cancel
,
sys_io_getevents
,
sys_ni_syscall
/*
270
*/
.
word
sys_io_submit
,
sys_io_cancel
,
sys_io_getevents
,
sys_mq_open
,
sys_mq_unlink
.
word
sys_mq_timedsend
,
sys_mq_timedreceive
,
sys_mq_notify
,
sys_mq_getsetattr
,
sys_ni_syscall
/*
280
*/
.
word
sys_ni_syscall
,
sys_ni_syscall
,
sys_ni_syscall
#if defined(CONFIG_SUNOS_EMUL) || defined(CONFIG_SOLARIS_EMUL) || \
defined
(
CONFIG_SOLARIS_EMUL_MODULE
)
...
...
@@ -237,5 +241,8 @@ sunos_sys_table:
.
word
sunos_nosys
,
sunos_nosys
,
sunos_nosys
.
word
sunos_nosys
,
sunos_nosys
,
sunos_nosys
.
word
sunos_nosys
,
sunos_nosys
,
sunos_nosys
.
word
sunos_nosys
,
sunos_nosys
,
sunos_nosys
.
word
sunos_nosys
,
sunos_nosys
,
sunos_nosys
.
word
sunos_nosys
,
sunos_nosys
,
sunos_nosys
#endif
include/asm-sparc/unistd.h
View file @
a355eaae
...
...
@@ -289,10 +289,17 @@
#define __NR_io_submit 270
#define __NR_io_cancel 271
#define __NR_io_getevents 272
/* WARNING: You MAY NOT add syscall numbers larger than 272, since
#define __NR_mq_open 273
#define __NR_mq_unlink (__NR_mq_open+1)
#define __NR_mq_timedsend (__NR_mq_open+2)
#define __NR_mq_timedreceive (__NR_mq_open+3)
#define __NR_mq_notify (__NR_mq_open+4)
#define __NR_mq_getsetattr (__NR_mq_open+5)
/* WARNING: You MAY NOT add syscall numbers larger than 282, since
* all of the syscall tables in the Sparc kernel are
* sized to have 2
7
3 entries (starting at zero). Therefore
* find a free slot in the 0-2
7
2 range.
* sized to have 2
8
3 entries (starting at zero). Therefore
* find a free slot in the 0-2
8
2 range.
*/
#define _syscall0(type,name) \
...
...
include/asm-sparc64/system.h
View file @
a355eaae
...
...
@@ -205,7 +205,7 @@ do { if (test_thread_flag(TIF_PERFCTR)) { \
"ldx [%%g6 + %7], %%g4\n\t" \
"wrpr %%g0, 0x96, %%pstate\n\t" \
"andcc %%o7, %6, %%g0\n\t" \
"beq,p
n
%%icc, 1f\n\t" \
"beq,p
t
%%icc, 1f\n\t" \
" mov %%g5, %0\n\t" \
"b,a ret_from_syscall\n\t" \
"1:\n\t" \
...
...
include/asm-sparc64/unistd.h
View file @
a355eaae
...
...
@@ -291,10 +291,16 @@
#define __NR_io_submit 270
#define __NR_io_cancel 271
#define __NR_io_getevents 272
/* WARNING: You MAY NOT add syscall numbers larger than 272, since
#define __NR_mq_open 273
#define __NR_mq_unlink (__NR_mq_open+1)
#define __NR_mq_timedsend (__NR_mq_open+2)
#define __NR_mq_timedreceive (__NR_mq_open+3)
#define __NR_mq_notify (__NR_mq_open+4)
#define __NR_mq_getsetattr (__NR_mq_open+5)
/* WARNING: You MAY NOT add syscall numbers larger than 282, since
* all of the syscall tables in the Sparc kernel are
* sized to have 2
7
3 entries (starting at zero). Therefore
* find a free slot in the 0-2
7
2 range.
* sized to have 2
8
3 entries (starting at zero). Therefore
* find a free slot in the 0-2
8
2 range.
*/
#define _syscall0(type,name) \
...
...
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