mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
[PATCH] uml: move libc-dependent code from trap_user.c
The serial UML OS-abstraction layer patch (um/kernel dir). This moves all systemcalls from trap_user.c file under os-Linux dir Signed-off-by: Gennady Sharapov <Gennady.V.Sharapov@intel.com> Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
0805d89c15
commit
ea2ba7dc3d
13 changed files with 123 additions and 91 deletions
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com)
|
||||
* Licensed under the GPL
|
||||
*/
|
||||
|
@ -10,6 +10,19 @@
|
|||
#include "sysdep/ptrace.h"
|
||||
#include "sysdep/faultinfo.h"
|
||||
|
||||
typedef void (*kern_hndl)(int, union uml_pt_regs *);
|
||||
|
||||
struct kern_handlers {
|
||||
kern_hndl relay_signal;
|
||||
kern_hndl winch;
|
||||
kern_hndl bus_handler;
|
||||
kern_hndl page_fault;
|
||||
kern_hndl sigio_handler;
|
||||
kern_hndl timer_handler;
|
||||
};
|
||||
|
||||
extern struct kern_handlers handlinfo_kern;
|
||||
|
||||
extern int ncpus;
|
||||
extern char *linux_prog;
|
||||
extern char *gdb_init;
|
||||
|
@ -109,6 +122,8 @@ extern void arch_switch(void);
|
|||
extern void free_irq(unsigned int, void *);
|
||||
extern int um_in_interrupt(void);
|
||||
extern int cpu(void);
|
||||
extern void segv_handler(int sig, union uml_pt_regs *regs);
|
||||
extern void sigio_handler(int sig, union uml_pt_regs *regs);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue