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
d78f04cf
Commit
d78f04cf
authored
Aug 02, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: rename to pread64/pwrite64 and add sys_readahead
parent
d3e65dbb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
30 deletions
+31
-30
arch/ppc64/kernel/misc.S
arch/ppc64/kernel/misc.S
+10
-7
arch/ppc64/kernel/sys_ppc32.c
arch/ppc64/kernel/sys_ppc32.c
+16
-14
include/asm-ppc64/unistd.h
include/asm-ppc64/unistd.h
+5
-9
No files found.
arch/ppc64/kernel/misc.S
View file @
d78f04cf
...
...
@@ -683,8 +683,8 @@ _GLOBAL(sys_call_table32)
.
llong
.
sys32_rt_sigtimedwait
.
llong
.
sys32_rt_sigqueueinfo
.
llong
.
sys32_rt_sigsuspend
.
llong
.
sys32_pread
.
llong
.
sys32_pwrite
/*
180
*/
.
llong
.
sys32_pread
64
.
llong
.
sys32_pwrite
64
/*
180
*/
.
llong
.
sys_chown
.
llong
.
sys_getcwd
.
llong
.
sys_capget
...
...
@@ -695,7 +695,7 @@ _GLOBAL(sys_call_table32)
.
llong
.
sys_ni_syscall
/*
streams2
*/
.
llong
.
sys32_vfork
.
llong
.
sys32_getrlimit
/*
190
*/
.
llong
.
sys
_ni_syscall
/*
191
*/
/*
Unused
*/
.
llong
.
sys
32_readahead
.
llong
.
sys_ni_syscall
/*
192
-
reserved
-
mmap2
*/
.
llong
.
sys32_truncate64
/*
193
-
truncate64
*/
.
llong
.
sys32_ftruncate64
/*
194
-
ftruncate64
*/
...
...
@@ -726,11 +726,12 @@ _GLOBAL(sys_call_table32)
.
llong
.
sys_lremovexattr
.
llong
.
sys_fremovexattr
/*
220
*/
.
llong
.
sys_futex
.
llong
.
sys_ni_syscall
/*
reserved
for
tux
*/
.
llong
.
sys32_sched_setaffinity
.
llong
.
sys32_sched_getaffinity
.
llong
.
sys_ni_syscall
/*
reserved
for
security
*/
.
llong
.
sys_ni_syscall
/*
225
-
reserved
for
tux
*/
.
rept
NR_syscalls
-
22
4
.
rept
NR_syscalls
-
22
5
.
llong
.
sys_ni_syscall
.
endr
#endif
...
...
@@ -928,6 +929,7 @@ _GLOBAL(sys_call_table)
.
llong
.
sys_ni_syscall
/*
streams2
*/
.
llong
.
sys_vfork
.
llong
.
sys_getrlimit
/*
190
*/
.
llong
.
sys_readahead
.
llong
.
sys_ni_syscall
/*
191
*/
/*
Unused
*/
.
llong
.
sys_ni_syscall
/*
192
-
reserved
-
mmap2
*/
.
llong
.
sys_ni_syscall
/*
193
-
reserved
-
truncate64
*/
...
...
@@ -959,10 +961,11 @@ _GLOBAL(sys_call_table)
.
llong
.
sys_lremovexattr
.
llong
.
sys_fremovexattr
/*
220
*/
.
llong
.
sys_futex
.
llong
.
sys_ni_syscall
/*
reserved
for
tux
*/
.
llong
.
sys_sched_setaffinity
.
llong
.
sys_sched_getaffinity
.
llong
.
sys_ni_syscall
/*
reserved
for
security
*/
.
llong
.
sys_ni_syscall
/*
reserved
for
tux
*/
.
rept
NR_syscalls
-
22
4
.
rept
NR_syscalls
-
22
5
.
llong
.
sys_ni_syscall
.
endr
arch/ppc64/kernel/sys_ppc32.c
View file @
d78f04cf
...
...
@@ -4438,30 +4438,32 @@ asmlinkage int sys32_vm86(u32 a1, u32 a2, u32 a3, u32 a4)
return
sys_vm86
((
int
)
a1
,
(
int
)
a2
,
(
int
)
a3
,
(
int
)
a4
);
}
extern
ssize_t
sys_pread64
(
unsigned
int
fd
,
char
*
buf
,
size_t
count
,
loff_t
pos
);
extern
asmlinkage
ssize_t
sys_pread
(
unsigned
int
fd
,
char
*
buf
,
size_t
count
,
loff_t
pos
);
extern
asmlinkage
ssize_t
sys_pwrite
(
unsigned
int
fd
,
const
char
*
buf
,
size_t
count
,
loff_t
pos
);
extern
ssize_t
sys_pwrite64
(
unsigned
int
fd
,
const
char
*
buf
,
size_t
count
,
loff_t
pos
);
typedef
__kernel_ssize_t32
ssize_t32
;
asmlinkage
ssize_t32
sys32_pread
(
unsigned
int
fd
,
char
*
ubuf
,
__kernel_size_t32
count
,
u32
reg6
,
u32
poshi
,
u32
poslo
)
ssize_t32
sys32_pread64
(
unsigned
int
fd
,
char
*
ubuf
,
__kernel_size_t32
count
,
u32
reg6
,
u32
poshi
,
u32
poslo
)
{
return
sys_pread
(
fd
,
ubuf
,
count
,
((
loff_t
)
AA
(
poshi
)
<<
32
)
|
AA
(
poslo
));
return
sys_pread
64
(
fd
,
ubuf
,
count
,
((
loff_t
)
AA
(
poshi
)
<<
32
)
|
AA
(
poslo
));
}
asmlinkage
ssize_t32
sys32_pwrite
(
unsigned
int
fd
,
char
*
ubuf
,
__kernel_size_t32
count
,
u32
reg6
,
u32
poshi
,
u32
poslo
)
ssize_t32
sys32_pwrite64
(
unsigned
int
fd
,
char
*
ubuf
,
__kernel_size_t32
count
,
u32
reg6
,
u32
poshi
,
u32
poslo
)
{
return
sys_pwrite
(
fd
,
ubuf
,
count
,
((
loff_t
)
AA
(
poshi
)
<<
32
)
|
AA
(
poslo
));
return
sys_pwrite
64
(
fd
,
ubuf
,
count
,
((
loff_t
)
AA
(
poshi
)
<<
32
)
|
AA
(
poslo
));
}
extern
ssize_t
sys_readahead
(
int
fd
,
loff_t
offset
,
size_t
count
);
ssize_t32
sys32_readahead
(
int
fd
,
u32
offhi
,
u32
offlo
,
s32
count
)
{
return
sys_readahead
(
fd
,
((
loff_t
)
AA
(
offhi
)
<<
32
)
|
AA
(
offlo
),
count
);
}
extern
asmlinkage
long
sys_truncate
(
const
char
*
path
,
unsigned
long
length
);
extern
asmlinkage
long
sys_ftruncate
(
unsigned
int
fd
,
unsigned
long
length
);
...
...
include/asm-ppc64/unistd.h
View file @
d78f04cf
...
...
@@ -200,6 +200,7 @@
#define __NR_putpmsg 188
/* some people actually want streams */
#define __NR_vfork 189
#define __NR_ugetrlimit 190
/* SuS compliant getrlimit */
#define __NR_readahead 191
#define __NR_mmap2 192
#define __NR_truncate64 193
#define __NR_ftruncate64 194
...
...
@@ -230,15 +231,10 @@
#define __NR_lremovexattr 219
#define __NR_fremovexattr 220
#define __NR_futex 221
#define __NR_tux 222
#define __NR_sched_setaffinity 223
#define __NR_sched_getaffinity 224
#if 0
/* Remind paulus to add these into ppc32 */
__NR_security
__NR_readahead
#endif
#define __NR_sched_setaffinity 222
#define __NR_sched_getaffinity 223
#define __NR_security 224
#define __NR_tuxcall 225
#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