diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-10-16 04:27:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:05 -0400 |
commit | fab95c55e3b94e219044dc7a558632d08c198771 (patch) | |
tree | 2ce8bf6eb52e66ee69a0b03cf9ad60310279524e /arch/um/include | |
parent | 0a7675aa204ac2470bb06f562557978b03914a71 (diff) |
uml: get rid of do_longjmp
do_longjmp used to be needed when UML didn't have its own implementation of
setjmp and longjmp. They came from libc, and couldn't be called directly from
kernel code, as the libc jmp_buf couldn't be imported there. do_longjmp was a
userspace function which served to provide longjmp access to kernel code.
This is gone, and a number of void * pointers can now be jmp_buf *.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/include')
-rw-r--r-- | arch/um/include/os.h | 5 | ||||
-rw-r--r-- | arch/um/include/um_uaccess.h | 4 | ||||
-rw-r--r-- | arch/um/include/uml_uaccess.h | 24 |
3 files changed, 6 insertions, 27 deletions
diff --git a/arch/um/include/os.h b/arch/um/include/os.h index 96f333cd560d..c704851d68b7 100644 --- a/arch/um/include/os.h +++ b/arch/um/include/os.h | |||
@@ -193,7 +193,7 @@ extern int os_getpid(void); | |||
193 | extern int os_getpgrp(void); | 193 | extern int os_getpgrp(void); |
194 | 194 | ||
195 | extern void init_new_thread_signals(void); | 195 | extern void init_new_thread_signals(void); |
196 | extern int run_kernel_thread(int (*fn)(void *), void *arg, void **jmp_ptr); | 196 | extern int run_kernel_thread(int (*fn)(void *), void *arg, jmp_buf **jmp_ptr); |
197 | 197 | ||
198 | extern int os_map_memory(void *virt, int fd, unsigned long long off, | 198 | extern int os_map_memory(void *virt, int fd, unsigned long long off, |
199 | unsigned long len, int r, int w, int x); | 199 | unsigned long len, int r, int w, int x); |
@@ -206,7 +206,7 @@ extern void os_flush_stdout(void); | |||
206 | 206 | ||
207 | /* uaccess.c */ | 207 | /* uaccess.c */ |
208 | extern unsigned long __do_user_copy(void *to, const void *from, int n, | 208 | extern unsigned long __do_user_copy(void *to, const void *from, int n, |
209 | void **fault_addr, void **fault_catcher, | 209 | void **fault_addr, jmp_buf **fault_catcher, |
210 | void (*op)(void *to, const void *from, | 210 | void (*op)(void *to, const void *from, |
211 | int n), int *faulted_out); | 211 | int n), int *faulted_out); |
212 | 212 | ||
@@ -240,7 +240,6 @@ extern int set_signals(int enable); | |||
240 | 240 | ||
241 | /* trap.c */ | 241 | /* trap.c */ |
242 | extern void os_fill_handlinfo(struct kern_handlers h); | 242 | extern void os_fill_handlinfo(struct kern_handlers h); |
243 | extern void do_longjmp(void *p, int val); | ||
244 | 243 | ||
245 | /* util.c */ | 244 | /* util.c */ |
246 | extern void stack_protections(unsigned long address); | 245 | extern void stack_protections(unsigned long address); |
diff --git a/arch/um/include/um_uaccess.h b/arch/um/include/um_uaccess.h index 5ef311a1a394..fdfc06b85605 100644 --- a/arch/um/include/um_uaccess.h +++ b/arch/um/include/um_uaccess.h | |||
@@ -30,6 +30,10 @@ | |||
30 | extern int copy_from_user(void *to, const void __user *from, int n); | 30 | extern int copy_from_user(void *to, const void __user *from, int n); |
31 | extern int copy_to_user(void __user *to, const void *from, int n); | 31 | extern int copy_to_user(void __user *to, const void *from, int n); |
32 | 32 | ||
33 | extern int __do_copy_to_user(void *to, const void *from, int n, | ||
34 | void **fault_addr, jmp_buf **fault_catcher); | ||
35 | extern void __do_copy(void *to, const void *from, int n); | ||
36 | |||
33 | /* | 37 | /* |
34 | * strncpy_from_user: - Copy a NUL terminated string from userspace. | 38 | * strncpy_from_user: - Copy a NUL terminated string from userspace. |
35 | * @dst: Destination address, in kernel space. This buffer must be at | 39 | * @dst: Destination address, in kernel space. This buffer must be at |
diff --git a/arch/um/include/uml_uaccess.h b/arch/um/include/uml_uaccess.h deleted file mode 100644 index c0df11d06f5e..000000000000 --- a/arch/um/include/uml_uaccess.h +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2001 Jeff Dike (jdike@karaya.com) | ||
3 | * Licensed under the GPL | ||
4 | */ | ||
5 | |||
6 | #ifndef __UML_UACCESS_H__ | ||
7 | #define __UML_UACCESS_H__ | ||
8 | |||
9 | extern int __do_copy_to_user(void *to, const void *from, int n, | ||
10 | void **fault_addr, void **fault_catcher); | ||
11 | void __do_copy(void *to, const void *from, int n); | ||
12 | |||
13 | #endif | ||
14 | |||
15 | /* | ||
16 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
17 | * Emacs will notice this stuff at the end of the file and automatically | ||
18 | * adjust the settings for this buffer only. This must remain at the end | ||
19 | * of the file. | ||
20 | * --------------------------------------------------------------------------- | ||
21 | * Local variables: | ||
22 | * c-file-style: "linux" | ||
23 | * End: | ||
24 | */ | ||