UML - Create arch.h
PATCH 3/7 UML - Create arch.h
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 <[email protected]>
--
arch/um/include/arch.h | 15 +++++++++++++++ arch/um/include/user_util.h | 4 ---- arch/um/kernel/trap.c | 1 + arch/um/kernel/um_arch.c | 1 + 4 files changed, 17 insertions(+), 4 deletions(-)
arch/um/include/arch.h new file +15 -0
@@ -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
arch/um/kernel/trap.c +1 -0
@@ -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"
arch/um/kernel/um_arch.c +1 -0
@@ -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"
arch/um/include/user_util.h +0 -4
@@ -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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel