aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/include')
-rw-r--r--arch/um/include/os.h2
-rw-r--r--arch/um/include/registers.h2
-rw-r--r--arch/um/include/skas/mode-skas.h9
-rw-r--r--arch/um/include/sysdep-i386/ptrace.h11
-rw-r--r--arch/um/include/user.h8
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,
307extern int is_skas_winch(int pid, int fd, void *data); 307extern int is_skas_winch(int pid, int fd, void *data);
308extern int start_userspace(unsigned long stub_stack); 308extern int start_userspace(unsigned long stub_stack);
309extern int copy_context_skas0(unsigned long stack, int pid); 309extern int copy_context_skas0(unsigned long stack, int pid);
310extern void save_registers(int pid, union uml_pt_regs *regs);
311extern void restore_registers(int pid, union uml_pt_regs *regs);
310extern void userspace(union uml_pt_regs *regs); 312extern void userspace(union uml_pt_regs *regs);
311extern void map_stub_pages(int fd, unsigned long code, 313extern 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);
15extern void save_registers(int pid, union uml_pt_regs *regs); 15extern void save_registers(int pid, union uml_pt_regs *regs);
16extern void restore_registers(int pid, union uml_pt_regs *regs); 16extern void restore_registers(int pid, union uml_pt_regs *regs);
17extern void init_registers(int pid); 17extern void init_registers(int pid);
18extern void get_safe_registers(unsigned long * regs, unsigned long * fp_regs); 18extern void get_safe_registers(unsigned long *regs);
19extern unsigned long get_thread_reg(int reg, jmp_buf *buf); 19extern 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
11extern unsigned long exec_regs[];
12extern unsigned long exec_fp_regs[];
13extern unsigned long exec_fpx_regs[];
14extern int have_fpx_regs;
15
16extern void kill_off_processes_skas(void); 9extern 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
22extern void panic(const char *fmt, ...) 24extern void panic(const char *fmt, ...)
23 __attribute__ ((format (printf, 1, 2))); 25 __attribute__ ((format (printf, 1, 2)));