]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
uml: create arch.h
authorJeff Dike <jdike@addtoit.com>
Sun, 6 May 2007 21:51:07 +0000 (14:51 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 7 May 2007 19:13:01 +0000 (12:13 -0700)
This patch moves the declarations of the architecture hooks from user_util.h
to a new header, arch.c, and adds the necessary includes to files which need
those declarations.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/include/arch.h [new file with mode: 0644]
arch/um/include/user_util.h
arch/um/kernel/trap.c
arch/um/kernel/um_arch.c

diff --git a/arch/um/include/arch.h b/arch/um/include/arch.h
new file mode 100644 (file)
index 0000000..8e11dd7
--- /dev/null
@@ -0,0 +1,15 @@
+/*
+ * Copyright (C) 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
+ * Licensed under the GPL
+ */
+
+#ifndef __ARCH_H__
+#define __ARCH_H__
+
+#include "sysdep/ptrace.h"
+
+extern void arch_check_bugs(void);
+extern int arch_fixup(unsigned long address, void *sc_ptr);
+extern int arch_handle_signal(int sig, union uml_pt_regs *regs);
+
+#endif
index df4869aa940612fc0fda0892536dac0f39b69f35..fabad2372af003e54ba411abff6fe50f6c6724ee 100644 (file)
@@ -65,10 +65,6 @@ extern int attach(int pid);
 extern void kill_child_dead(int pid);
 extern int cont(int pid);
 extern void check_sigio(void);
-extern void arch_check_bugs(void);
-extern int arch_handle_signal(int sig, union uml_pt_regs *regs);
-extern int arch_fixup(unsigned long address, void *sc_ptr);
-extern void arch_init_thread(void);
 extern int raw(int fd);
 
 #endif
index 26f15c4585747c3bf1d95fef79276e628b69c7f6..e27b898412fc1417bf01a6b0d61634a95ca8638e 100644 (file)
@@ -20,6 +20,7 @@
 #include "sysdep/sigcontext.h"
 #include "user_util.h"
 #include "kern_util.h"
+#include "arch.h"
 #include "kern.h"
 #include "chan_kern.h"
 #include "mconsole_kern.h"
index 613fb082bbd5896ed8a14d391ff4243ae1f17362..8eefb5202c501bb34f67bf060f638538e9b6c00a 100644 (file)
@@ -28,6 +28,7 @@
 #include "asm/current.h"
 #include "user_util.h"
 #include "kern_util.h"
+#include "arch.h"
 #include "kern.h"
 #include "mem_user.h"
 #include "mem.h"