13 #ifndef _ASM_X86_SYSCALL_H
14 #define _ASM_X86_SYSCALL_H
16 #include <linux/audit.h>
17 #include <linux/sched.h>
19 #include <asm/asm-offsets.h>
20 #include <asm/thread_info.h>
21 #include <asm/unistd.h>
32 return regs->orig_ax & __SYSCALL_MASK;
38 regs->ax = regs->orig_ax & __SYSCALL_MASK;
44 unsigned long error = regs->ax;
45 #ifdef CONFIG_IA32_EMULATION
70 regs->ax = (
long) error ?: val;
77 unsigned int i,
unsigned int n,
81 memcpy(args, ®s->bx + i, n *
sizeof(args[0]));
86 unsigned int i,
unsigned int n,
87 const unsigned long *args)
90 memcpy(®s->bx + i, args, n *
sizeof(args[0]));
103 unsigned int i,
unsigned int n,
106 # ifdef CONFIG_IA32_EMULATION
164 unsigned int i,
unsigned int n,
165 const unsigned long *args)
167 # ifdef CONFIG_IA32_EMULATION
226 #ifdef CONFIG_IA32_EMULATION