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
ea726219
Commit
ea726219
authored
Aug 21, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Plain Diff
Merge samba.org:/scratch/anton/linux-2.5
into samba.org:/scratch/anton/linux-2.5_work
parents
85f817cd
b201fb75
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
94 additions
and
215 deletions
+94
-215
arch/ppc64/kernel/entry.S
arch/ppc64/kernel/entry.S
+0
-8
arch/ppc64/kernel/misc.S
arch/ppc64/kernel/misc.S
+21
-19
arch/ppc64/kernel/process.c
arch/ppc64/kernel/process.c
+6
-6
arch/ppc64/kernel/sys32.S
arch/ppc64/kernel/sys32.S
+3
-7
arch/ppc64/kernel/sys_ppc32.c
arch/ppc64/kernel/sys_ppc32.c
+63
-175
include/asm-ppc64/unistd.h
include/asm-ppc64/unistd.h
+1
-0
No files found.
arch/ppc64/kernel/entry.S
View file @
ea726219
...
...
@@ -113,10 +113,6 @@ _GLOBAL(DoSyscall)
clrldi
r4
,
r4
,
32
clrldi
r5
,
r5
,
32
clrldi
r6
,
r6
,
32
#if 0 /* XXX Why not ??? - Anton */
clrldi
r7
,
r7
,
32
clrldi
r8
,
r8
,
32
#endif
b
17
f
15
:
#endif
...
...
@@ -187,10 +183,6 @@ _GLOBAL(ret_from_syscall_1)
clrldi
r4
,
r4
,
32
clrldi
r5
,
r5
,
32
clrldi
r6
,
r6
,
32
#if 0 /* XXX Why not ??? - Anton */
clrldi
r7
,
r7
,
32
clrldi
r8
,
r8
,
32
#endif
b
57
f
55
:
#endif
...
...
arch/ppc64/kernel/misc.S
View file @
ea726219
...
...
@@ -505,8 +505,8 @@ _GLOBAL(kernel_thread)
.
balign
8
_GLOBAL
(
sys_call_table32
)
.
llong
.
sys_ni_syscall
/*
0
-
old
"setup()"
system
call
*/
.
llong
.
sys
32
_exit
.
llong
.
sys
32
_fork
.
llong
.
sys_exit
.
llong
.
sys_fork
.
llong
.
sys_read
.
llong
.
sys_write
.
llong
.
sys32_open
/*
5
*/
...
...
@@ -522,7 +522,7 @@ _GLOBAL(sys_call_table32)
.
llong
.
sys_chmod
/*
15
*/
.
llong
.
sys_lchown
.
llong
.
sys_ni_syscall
/*
old
break
syscall
holder
*/
.
llong
.
sys
32_stat
.
llong
.
sys
_ni_syscall
/*
old
stat
syscall
holder
*/
.
llong
.
sys32_lseek
.
llong
.
sys_getpid
/*
20
*/
.
llong
.
sys32_mount
...
...
@@ -532,7 +532,7 @@ _GLOBAL(sys_call_table32)
.
llong
.
ppc64_sys32_stime
/*
25
*/
.
llong
.
sys32_ptrace
.
llong
.
sys_alarm
.
llong
.
sys
32_fstat
.
llong
.
sys
_ni_syscall
/*
old
fstat
syscall
holder
*/
.
llong
.
sys32_pause
.
llong
.
sys32_utime
/*
30
*/
.
llong
.
sys_ni_syscall
/*
old
stty
syscall
holder
*/
...
...
@@ -588,11 +588,11 @@ _GLOBAL(sys_call_table32)
.
llong
.
sys32_setgroups
.
llong
.
ppc32_select
.
llong
.
sys_symlink
.
llong
.
sys
32_lstat
.
llong
.
sys
_ni_syscall
/*
old
sys_lstat
syscall
holder
*/
.
llong
.
sys32_readlink
/*
85
*/
.
llong
.
sys_uselib
.
llong
.
sys
32
_swapon
.
llong
.
sys
32
_reboot
.
llong
.
sys_swapon
.
llong
.
sys_reboot
.
llong
.
old32_readdir
.
llong
.
sys32_mmap
/*
90
*/
.
llong
.
sys_munmap
...
...
@@ -605,7 +605,7 @@ _GLOBAL(sys_call_table32)
.
llong
.
sys_ni_syscall
/*
old
profil
syscall
holder
*/
.
llong
.
sys32_statfs
.
llong
.
sys32_fstatfs
/*
100
*/
.
llong
.
sys_
ni_syscall
/*
old
ioperm
syscall
holder
*/
.
llong
.
sys_
ioperm
.
llong
.
sys32_socketcall
.
llong
.
sys32_syslog
.
llong
.
sys32_setitimer
...
...
@@ -624,7 +624,7 @@ _GLOBAL(sys_call_table32)
.
llong
.
sys32_ipc
.
llong
.
sys_fsync
.
llong
.
ppc32_sigreturn
.
llong
.
sys
32
_clone
/*
120
*/
.
llong
.
sys_clone
/*
120
*/
.
llong
.
sys32_setdomainname
.
llong
.
ppc64_newuname
.
llong
.
sys_ni_syscall
/*
old
modify_ldt
syscall
holder
*/
...
...
@@ -638,7 +638,7 @@ _GLOBAL(sys_call_table32)
.
llong
.
sys_quotactl
.
llong
.
sys32_getpgid
.
llong
.
sys_fchdir
.
llong
.
sys
32
_bdflush
.
llong
.
sys_bdflush
.
llong
.
sys32_sysfs
/*
135
*/
.
llong
.
sys32_personality
.
llong
.
sys_ni_syscall
/*
for
afs_syscall
*/
...
...
@@ -693,10 +693,10 @@ _GLOBAL(sys_call_table32)
.
llong
.
sys32_sendfile
.
llong
.
sys_ni_syscall
/*
streams1
*/
.
llong
.
sys_ni_syscall
/*
streams2
*/
.
llong
.
sys
32
_vfork
.
llong
.
sys_vfork
.
llong
.
sys32_getrlimit
/*
190
*/
.
llong
.
sys32_readahead
.
llong
.
sys_ni_syscall
/*
192
-
reserved
-
mmap2
*/
.
llong
.
ppc32_mmap2
.
llong
.
sys32_truncate64
/*
193
-
truncate64
*/
.
llong
.
sys32_ftruncate64
/*
194
-
ftruncate64
*/
.
llong
.
sys_stat64
/*
195
-
stat64
*/
...
...
@@ -730,8 +730,9 @@ _GLOBAL(sys_call_table32)
.
llong
.
sys32_sched_getaffinity
.
llong
.
sys_ni_syscall
/*
reserved
for
security
*/
.
llong
.
sys_ni_syscall
/*
225
-
reserved
for
tux
*/
.
llong
.
sys32_sendfile64
.
rept
NR_syscalls
-
22
5
.
rept
NR_syscalls
-
22
6
.
llong
.
sys_ni_syscall
.
endr
#endif
...
...
@@ -756,7 +757,7 @@ _GLOBAL(sys_call_table)
.
llong
.
sys_chmod
/*
15
*/
.
llong
.
sys_lchown
.
llong
.
sys_ni_syscall
/*
old
break
syscall
holder
*/
.
llong
.
sys_
stat
.
llong
.
sys_
ni_syscall
/*
old
stat
syscall
holder
*/
.
llong
.
sys_lseek
.
llong
.
sys_getpid
/*
20
*/
.
llong
.
sys_mount
...
...
@@ -766,7 +767,7 @@ _GLOBAL(sys_call_table)
.
llong
.
ppc64_sys_stime
/*
25
*/
.
llong
.
sys_ptrace
.
llong
.
sys_alarm
.
llong
.
sys_
fstat
.
llong
.
sys_
ni_syscall
/*
old
sys_fstat
syscall
holder
*/
.
llong
.
sys_pause
.
llong
.
sys_utime
/*
30
*/
.
llong
.
sys_ni_syscall
/*
old
stty
syscall
holder
*/
...
...
@@ -822,7 +823,7 @@ _GLOBAL(sys_call_table)
.
llong
.
sys_setgroups
.
llong
.
sys_select
.
llong
.
sys_symlink
.
llong
.
sys_
lstat
.
llong
.
sys_
ni_syscall
/*
old
sys_lstat
syscall
holder
*/
.
llong
.
sys_readlink
/*
85
*/
.
llong
.
sys_uselib
.
llong
.
sys_swapon
...
...
@@ -839,7 +840,7 @@ _GLOBAL(sys_call_table)
.
llong
.
sys_ni_syscall
/*
old
profil
syscall
holder
*/
.
llong
.
sys_statfs
.
llong
.
sys_fstatfs
/*
100
*/
.
llong
.
sys_
ni_syscall
/*
old
ioperm
syscall
holder
*/
.
llong
.
sys_
ioperm
.
llong
.
sys_socketcall
.
llong
.
sys_syslog
.
llong
.
sys_setitimer
...
...
@@ -964,7 +965,8 @@ _GLOBAL(sys_call_table)
.
llong
.
sys_sched_getaffinity
.
llong
.
sys_ni_syscall
/*
reserved
for
security
*/
.
llong
.
sys_ni_syscall
/*
reserved
for
tux
*/
.
llong
.
sys_ni_syscall
/*
reserved
for
sendfile64
*/
.
rept
NR_syscalls
-
22
5
.
llong
.
sys_ni_syscall
.
rept
NR_syscalls
-
22
6
.
llong
.
sys_ni_syscall
.
endr
arch/ppc64/kernel/process.c
View file @
ea726219
...
...
@@ -259,19 +259,19 @@ int get_fpexc_mode(struct task_struct *tsk, unsigned long adr)
return
put_user
(
val
,
(
unsigned
int
*
)
adr
);
}
int
sys_clone
(
int
p1
,
int
p2
,
int
p3
,
int
p4
,
int
p5
,
int
p6
,
struct
pt_regs
*
regs
)
int
sys_clone
(
unsigned
long
clone_flags
,
u32
p2
,
u32
p3
,
u32
p4
,
u32
p5
,
u32
p6
,
struct
pt_regs
*
regs
)
{
struct
task_struct
*
p
;
if
(
regs
->
msr
&
MSR_FP
)
giveup_fpu
(
current
);
p
=
do_fork
(
p1
&
~
CLONE_IDLETASK
,
regs
->
gpr
[
1
],
regs
,
0
);
p
=
do_fork
(
clone_flags
&
~
CLONE_IDLETASK
,
regs
->
gpr
[
1
],
regs
,
0
);
return
IS_ERR
(
p
)
?
PTR_ERR
(
p
)
:
p
->
pid
;
}
int
sys_fork
(
int
p1
,
int
p2
,
int
p3
,
int
p4
,
int
p5
,
int
p6
,
int
sys_fork
(
u32
p1
,
u32
p2
,
u32
p3
,
u32
p4
,
u32
p5
,
u32
p6
,
struct
pt_regs
*
regs
)
{
struct
task_struct
*
p
;
...
...
@@ -283,8 +283,8 @@ int sys_fork(int p1, int p2, int p3, int p4, int p5, int p6,
return
IS_ERR
(
p
)
?
PTR_ERR
(
p
)
:
p
->
pid
;
}
int
sys_vfork
(
int
p1
,
int
p2
,
int
p3
,
int
p4
,
int
p5
,
int
p6
,
struct
pt_regs
*
regs
)
int
sys_vfork
(
u32
p1
,
u32
p2
,
u32
p3
,
u32
p4
,
u32
p5
,
u32
p6
,
struct
pt_regs
*
regs
)
{
struct
task_struct
*
p
;
...
...
arch/ppc64/kernel/sys32.S
View file @
ea726219
...
...
@@ -44,14 +44,10 @@ _GLOBAL(sys32_getsockopt)
clrldi
r7
,
r7
,
32
/*
int
*
optlen
parm
*/
b
.
sys_getsockopt
_GLOBAL
(
sys32_bdflush
)
extsw
r4
,
r4
/*
sign
extend
long
data
parm
*/
b
.
sys_bdflush
_GLOBAL
(
sys32_mmap2
)
_GLOBAL
(
ppc32_mmap2
)
clrldi
r7
,
r7
,
32
/*
unsigned
long
fd
parm
*/
extsw
r8
,
r8
/*
off_t
offset
*/
b
.
sys
_mmap
clrldi
r8
,
r8
,
32
/*
unsigned
long
pgoff
*/
b
.
sys
32_mmap2
_GLOBAL
(
sys32_socketcall
)
/
*
r3
=
call
,
r4
=
args
*/
cmpwi
r3
,
1
...
...
arch/ppc64/kernel/sys_ppc32.c
View file @
ea726219
This diff is collapsed.
Click to expand it.
include/asm-ppc64/unistd.h
View file @
ea726219
...
...
@@ -235,6 +235,7 @@
#define __NR_sched_getaffinity 223
#define __NR_security 224
#define __NR_tuxcall 225
#define __NR_sendfile64 226
#define __NR(n) #n
...
...
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