-
- Downloads
x86: pass in pt_regs pointer for syscalls that need it
Some syscalls need to access the pt_regs structure, either to copy user register state or to modifiy it. This patch adds stubs to load the address of the pt_regs struct into the %eax register, and changes the syscalls to regparm(1) to receive the pt_regs pointer as the first argument. Signed-off-by:Brian Gerst <brgerst@gmail.com> Acked-by:
Tejun Heo <tj@kernel.org> Signed-off-by:
Ingo Molnar <mingo@elte.hu>
Showing
- arch/x86/include/asm/linkage.h 7 additions, 0 deletionsarch/x86/include/asm/linkage.h
- arch/x86/include/asm/syscalls.h 15 additions, 10 deletionsarch/x86/include/asm/syscalls.h
- arch/x86/kernel/entry_32.S 20 additions, 0 deletionsarch/x86/kernel/entry_32.S
- arch/x86/kernel/ioport.c 1 addition, 3 deletionsarch/x86/kernel/ioport.c
- arch/x86/kernel/process_32.c 14 additions, 21 deletionsarch/x86/kernel/process_32.c
- arch/x86/kernel/signal.c 7 additions, 28 deletionsarch/x86/kernel/signal.c
- arch/x86/kernel/syscall_table_32.S 10 additions, 10 deletionsarch/x86/kernel/syscall_table_32.S
- arch/x86/kernel/vm86_32.c 7 additions, 8 deletionsarch/x86/kernel/vm86_32.c
Loading
Please register or sign in to comment