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
1acaa921
Commit
1acaa921
authored
Jun 09, 2003
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: use common 32bit ioctl code
parent
dfafbae1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
251 additions
and
3320 deletions
+251
-3320
arch/ppc64/kernel/Makefile
arch/ppc64/kernel/Makefile
+2
-0
arch/ppc64/kernel/ioctl32.c
arch/ppc64/kernel/ioctl32.c
+237
-3320
include/asm-ppc64/uaccess.h
include/asm-ppc64/uaccess.h
+12
-0
No files found.
arch/ppc64/kernel/Makefile
View file @
1acaa921
...
@@ -31,3 +31,5 @@ obj-$(CONFIG_SMP) += smp.o
...
@@ -31,3 +31,5 @@ obj-$(CONFIG_SMP) += smp.o
obj-$(CONFIG_MODULES)
+=
module.o ppc_ksyms.o
obj-$(CONFIG_MODULES)
+=
module.o ppc_ksyms.o
obj-$(CONFIG_PPC_RTAS)
+=
rtas-proc.o
obj-$(CONFIG_PPC_RTAS)
+=
rtas-proc.o
obj-$(CONFIG_SCANLOG)
+=
scanlog.o
obj-$(CONFIG_SCANLOG)
+=
scanlog.o
CFLAGS_ioctl32.o
+=
-Ifs
/
arch/ppc64/kernel/ioctl32.c
View file @
1acaa921
This source diff could not be displayed because it is too large. You can
view the blob
instead.
include/asm-ppc64/uaccess.h
View file @
1acaa921
...
@@ -226,10 +226,22 @@ copy_to_user(void *to, const void *from, unsigned long n)
...
@@ -226,10 +226,22 @@ copy_to_user(void *to, const void *from, unsigned long n)
return
n
;
return
n
;
}
}
static
inline
unsigned
long
copy_in_user
(
void
*
to
,
const
void
*
from
,
unsigned
long
n
)
{
if
(
!
access_ok
(
VERIFY_READ
,
from
,
n
)
||
!
access_ok
(
VERIFY_WRITE
,
to
,
n
))
return
n
;
return
__copy_tofrom_user
(
to
,
from
,
n
);
}
#define __copy_from_user(to, from, size) \
#define __copy_from_user(to, from, size) \
__copy_tofrom_user((to), (from), (size))
__copy_tofrom_user((to), (from), (size))
#define __copy_to_user(to, from, size) \
#define __copy_to_user(to, from, size) \
__copy_tofrom_user((to), (from), (size))
__copy_tofrom_user((to), (from), (size))
#define __copy_in_user(to, from, size) \
__copy_tofrom_user((to), (from), (size))
extern
unsigned
long
__clear_user
(
void
*
addr
,
unsigned
long
size
);
extern
unsigned
long
__clear_user
(
void
*
addr
,
unsigned
long
size
);
...
...
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