2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
9 #include "uml-config.h"
10 #include "syscall_user.h"
11 #include "sysdep/ptrace.h"
12 #include "sysdep/sigcontext.h"
15 void handle_syscall(union uml_pt_regs *regs)
18 #ifdef UML_CONFIG_SYSCALL_DEBUG
21 index = record_syscall_start(UPT_SYSCALL_NR(regs));
24 syscall_trace(regs, 0);
25 result = execute_syscall_skas(regs);
27 REGS_SET_SYSCALL_RETURN(regs->skas.regs, result);
29 syscall_trace(regs, 1);
30 #ifdef UML_CONFIG_SYSCALL_DEBUG
31 record_syscall_end(index, result);
36 * Overrides for Emacs so that we follow Linus's tabbing style.
37 * Emacs will notice this stuff at the end of the file and automatically
38 * adjust the settings for this buffer only. This must remain at the end
40 * ---------------------------------------------------------------------------
42 * c-file-style: "linux"