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 <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>
This commit is contained in:
parent
c65badbdf5
commit
eb8307595b
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue