diff options
Diffstat (limited to 'arch/um/include')
-rw-r--r-- | arch/um/include/os.h | 2 | ||||
-rw-r--r-- | arch/um/include/registers.h | 2 | ||||
-rw-r--r-- | arch/um/include/skas/mode-skas.h | 9 | ||||
-rw-r--r-- | arch/um/include/sysdep-i386/ptrace.h | 11 | ||||
-rw-r--r-- | arch/um/include/user.h | 8 |
5 files changed, 9 insertions, 23 deletions
diff --git a/arch/um/include/os.h b/arch/um/include/os.h index bb6b7d9e1888..c0803e67fc67 100644 --- a/arch/um/include/os.h +++ b/arch/um/include/os.h | |||
@@ -307,6 +307,8 @@ extern int protect(struct mm_id * mm_idp, unsigned long addr, | |||
307 | extern int is_skas_winch(int pid, int fd, void *data); | 307 | extern int is_skas_winch(int pid, int fd, void *data); |
308 | extern int start_userspace(unsigned long stub_stack); | 308 | extern int start_userspace(unsigned long stub_stack); |
309 | extern int copy_context_skas0(unsigned long stack, int pid); | 309 | extern int copy_context_skas0(unsigned long stack, int pid); |
310 | extern void save_registers(int pid, union uml_pt_regs *regs); | ||
311 | extern void restore_registers(int pid, union uml_pt_regs *regs); | ||
310 | extern void userspace(union uml_pt_regs *regs); | 312 | extern void userspace(union uml_pt_regs *regs); |
311 | extern void map_stub_pages(int fd, unsigned long code, | 313 | extern void map_stub_pages(int fd, unsigned long code, |
312 | unsigned long data, unsigned long stack); | 314 | unsigned long data, unsigned long stack); |
diff --git a/arch/um/include/registers.h b/arch/um/include/registers.h index f845b3629a6d..b7d2c4e2c613 100644 --- a/arch/um/include/registers.h +++ b/arch/um/include/registers.h | |||
@@ -15,7 +15,7 @@ extern int restore_fp_registers(int pid, unsigned long *fp_regs); | |||
15 | extern void save_registers(int pid, union uml_pt_regs *regs); | 15 | extern void save_registers(int pid, union uml_pt_regs *regs); |
16 | extern void restore_registers(int pid, union uml_pt_regs *regs); | 16 | extern void restore_registers(int pid, union uml_pt_regs *regs); |
17 | extern void init_registers(int pid); | 17 | extern void init_registers(int pid); |
18 | extern void get_safe_registers(unsigned long * regs, unsigned long * fp_regs); | 18 | extern void get_safe_registers(unsigned long *regs); |
19 | extern unsigned long get_thread_reg(int reg, jmp_buf *buf); | 19 | extern unsigned long get_thread_reg(int reg, jmp_buf *buf); |
20 | 20 | ||
21 | #endif | 21 | #endif |
diff --git a/arch/um/include/skas/mode-skas.h b/arch/um/include/skas/mode-skas.h index 8bc6916bbbb1..e065feb000df 100644 --- a/arch/um/include/skas/mode-skas.h +++ b/arch/um/include/skas/mode-skas.h | |||
@@ -1,18 +1,11 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2002 Jeff Dike (jdike@karaya.com) | 2 | * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{linux.intel,addtoit}.com) |
3 | * Licensed under the GPL | 3 | * Licensed under the GPL |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #ifndef __MODE_SKAS_H__ | 6 | #ifndef __MODE_SKAS_H__ |
7 | #define __MODE_SKAS_H__ | 7 | #define __MODE_SKAS_H__ |
8 | 8 | ||
9 | #include <sysdep/ptrace.h> | ||
10 | |||
11 | extern unsigned long exec_regs[]; | ||
12 | extern unsigned long exec_fp_regs[]; | ||
13 | extern unsigned long exec_fpx_regs[]; | ||
14 | extern int have_fpx_regs; | ||
15 | |||
16 | extern void kill_off_processes_skas(void); | 9 | extern void kill_off_processes_skas(void); |
17 | 10 | ||
18 | #endif | 11 | #endif |
diff --git a/arch/um/include/sysdep-i386/ptrace.h b/arch/um/include/sysdep-i386/ptrace.h index 52b398bcafcf..b45a72feb08c 100644 --- a/arch/um/include/sysdep-i386/ptrace.h +++ b/arch/um/include/sysdep-i386/ptrace.h | |||
@@ -219,14 +219,3 @@ struct syscall_args { | |||
219 | CHOOSE_MODE((&(r)->tt.faultinfo), (&(r)->skas.faultinfo)) | 219 | CHOOSE_MODE((&(r)->tt.faultinfo), (&(r)->skas.faultinfo)) |
220 | 220 | ||
221 | #endif | 221 | #endif |
222 | |||
223 | /* | ||
224 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
225 | * Emacs will notice this stuff at the end of the file and automatically | ||
226 | * adjust the settings for this buffer only. This must remain at the end | ||
227 | * of the file. | ||
228 | * --------------------------------------------------------------------------- | ||
229 | * Local variables: | ||
230 | * c-file-style: "linux" | ||
231 | * End: | ||
232 | */ | ||
diff --git a/arch/um/include/user.h b/arch/um/include/user.h index d380e6d91a90..99033ff28a78 100644 --- a/arch/um/include/user.h +++ b/arch/um/include/user.h | |||
@@ -14,10 +14,12 @@ | |||
14 | */ | 14 | */ |
15 | #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) | 15 | #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) |
16 | 16 | ||
17 | /* | 17 | /* This is to get size_t */ |
18 | * This will provide the size_t definition in both kernel and userspace builds | 18 | #ifdef __KERNEL__ |
19 | */ | ||
20 | #include <linux/types.h> | 19 | #include <linux/types.h> |
20 | #else | ||
21 | #include <stddef.h> | ||
22 | #endif | ||
21 | 23 | ||
22 | extern void panic(const char *fmt, ...) | 24 | extern void panic(const char *fmt, ...) |
23 | __attribute__ ((format (printf, 1, 2))); | 25 | __attribute__ ((format (printf, 1, 2))); |