aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include/kern_util.h
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2007-10-16 04:26:58 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:43:05 -0400
commit77bf4400319db9d2a8af6b00c2be6faa0f3d07cb (patch)
treeddc8fd48349b8d4dd2c0b26bce7f52f79b4e4077 /arch/um/include/kern_util.h
parentae2587e41254e48e670346aefa332d7469d86352 (diff)
uml: remove code made redundant by CHOOSE_MODE removal
This patch makes a number of simplifications enabled by the removal of CHOOSE_MODE. There were lots of functions that looked like int foo(args){ foo_skas(args); } The bodies of foo_skas are now folded into foo, and their declarations (and sometimes entire header files) are deleted. In addition, the union uml_pt_regs, which was a union between the tt and skas register formats, is now a struct, with the tt-mode arm of the union being removed. It turns out that usr2_handler was unused, so it is gone. 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/kern_util.h')
-rw-r--r--arch/um/include/kern_util.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/arch/um/include/kern_util.h b/arch/um/include/kern_util.h
index 578156db3039..9d3110f41ddb 100644
--- a/arch/um/include/kern_util.h
+++ b/arch/um/include/kern_util.h
@@ -10,7 +10,7 @@
10#include "sysdep/faultinfo.h" 10#include "sysdep/faultinfo.h"
11#include "uml-config.h" 11#include "uml-config.h"
12 12
13typedef void (*kern_hndl)(int, union uml_pt_regs *); 13typedef void (*kern_hndl)(int, struct uml_pt_regs *);
14 14
15struct kern_handlers { 15struct kern_handlers {
16 kern_hndl relay_signal; 16 kern_hndl relay_signal;
@@ -41,7 +41,7 @@ extern unsigned long alloc_stack(int order, int atomic);
41extern int do_signal(void); 41extern int do_signal(void);
42extern int is_stack_fault(unsigned long sp); 42extern int is_stack_fault(unsigned long sp);
43extern unsigned long segv(struct faultinfo fi, unsigned long ip, 43extern unsigned long segv(struct faultinfo fi, unsigned long ip,
44 int is_user, union uml_pt_regs *regs); 44 int is_user, struct uml_pt_regs *regs);
45extern int handle_page_fault(unsigned long address, unsigned long ip, 45extern int handle_page_fault(unsigned long address, unsigned long ip,
46 int is_write, int is_user, int *code_out); 46 int is_write, int is_user, int *code_out);
47extern void syscall_ready(void); 47extern void syscall_ready(void);
@@ -54,7 +54,7 @@ extern int need_finish_fork(void);
54extern void free_stack(unsigned long stack, int order); 54extern void free_stack(unsigned long stack, int order);
55extern void add_input_request(int op, void (*proc)(int), void *arg); 55extern void add_input_request(int op, void (*proc)(int), void *arg);
56extern char *current_cmd(void); 56extern char *current_cmd(void);
57extern void timer_handler(int sig, union uml_pt_regs *regs); 57extern void timer_handler(int sig, struct uml_pt_regs *regs);
58extern int set_signals(int enable); 58extern int set_signals(int enable);
59extern int pid_to_processor_id(int pid); 59extern int pid_to_processor_id(int pid);
60extern void deliver_signals(void *t); 60extern void deliver_signals(void *t);
@@ -64,9 +64,9 @@ extern void finish_fork(void);
64extern void paging_init(void); 64extern void paging_init(void);
65extern void init_flush_vm(void); 65extern void init_flush_vm(void);
66extern void *syscall_sp(void *t); 66extern void *syscall_sp(void *t);
67extern void syscall_trace(union uml_pt_regs *regs, int entryexit); 67extern void syscall_trace(struct uml_pt_regs *regs, int entryexit);
68extern int hz(void); 68extern int hz(void);
69extern unsigned int do_IRQ(int irq, union uml_pt_regs *regs); 69extern unsigned int do_IRQ(int irq, struct uml_pt_regs *regs);
70extern void interrupt_end(void); 70extern void interrupt_end(void);
71extern void initial_thread_cb(void (*proc)(void *), void *arg); 71extern void initial_thread_cb(void (*proc)(void *), void *arg);
72extern int debugger_signal(int status, int pid); 72extern int debugger_signal(int status, int pid);
@@ -76,9 +76,9 @@ extern int init_ptrace_proxy(int idle_pid, int startup, int stop);
76extern int init_parent_proxy(int pid); 76extern int init_parent_proxy(int pid);
77extern int singlestepping(void *t); 77extern int singlestepping(void *t);
78extern void check_stack_overflow(void *ptr); 78extern void check_stack_overflow(void *ptr);
79extern void relay_signal(int sig, union uml_pt_regs *regs); 79extern void relay_signal(int sig, struct uml_pt_regs *regs);
80extern int user_context(unsigned long sp); 80extern int user_context(unsigned long sp);
81extern void timer_irq(union uml_pt_regs *regs); 81extern void timer_irq(struct uml_pt_regs *regs);
82extern void do_uml_exitcalls(void); 82extern void do_uml_exitcalls(void);
83extern int attach_debugger(int idle_pid, int pid, int stop); 83extern int attach_debugger(int idle_pid, int pid, int stop);
84extern int config_gdb(char *str); 84extern int config_gdb(char *str);
@@ -109,11 +109,9 @@ extern void time_init_kern(void);
109 109
110/* Are we disallowed to sleep? Used to choose between GFP_KERNEL and GFP_ATOMIC. */ 110/* Are we disallowed to sleep? Used to choose between GFP_KERNEL and GFP_ATOMIC. */
111extern int __cant_sleep(void); 111extern int __cant_sleep(void);
112extern void sigio_handler(int sig, union uml_pt_regs *regs); 112extern void sigio_handler(int sig, struct uml_pt_regs *regs);
113 113extern void copy_sc(struct uml_pt_regs *regs, void *from);
114extern void copy_sc(union uml_pt_regs *regs, void *from);
115
116extern unsigned long to_irq_stack(unsigned long *mask_out); 114extern unsigned long to_irq_stack(unsigned long *mask_out);
117unsigned long from_irq_stack(int nested); 115unsigned long from_irq_stack(int nested);
118 116extern int start_uml(void);
119#endif 117#endif