xref: /openbmc/linux/arch/x86/um/shared/sysdep/syscalls_32.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
15c48b108SAl Viro /*
25c48b108SAl Viro  * Copyright (C) 2000 - 2008 Jeff Dike (jdike@{addtoit,linux.intel}.com)
35c48b108SAl Viro  * Licensed under the GPL
45c48b108SAl Viro  */
55c48b108SAl Viro 
637185b33SAl Viro #include <asm/unistd.h>
737185b33SAl Viro #include <sysdep/ptrace.h>
85c48b108SAl Viro 
9*61670b4dSLukas Straub typedef long syscall_handler_t(struct syscall_args);
105c48b108SAl Viro 
115c48b108SAl Viro extern syscall_handler_t *sys_call_table[];
125c48b108SAl Viro 
135c48b108SAl Viro #define EXECUTE_SYSCALL(syscall, regs) \
14*61670b4dSLukas Straub 	((*sys_call_table[syscall]))(SYSCALL_ARGS(&regs->regs))
15