2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
9 #include "syscall_user.h"
10 #include "sysdep/ptrace.h"
11 #include "sysdep/sigcontext.h"
14 void handle_syscall(union uml_pt_regs *regs)
19 index = record_syscall_start(UPT_SYSCALL_NR(regs));
21 syscall_trace(regs, 0);
22 result = execute_syscall(regs);
24 REGS_SET_SYSCALL_RETURN(regs->skas.regs, result);
26 syscall_trace(regs, 1);
27 record_syscall_end(index, result);
31 * Overrides for Emacs so that we follow Linus's tabbing style.
32 * Emacs will notice this stuff at the end of the file and automatically
33 * adjust the settings for this buffer only. This must remain at the end
35 * ---------------------------------------------------------------------------
37 * c-file-style: "linux"