• Brian Gerst's avatar
    x86: use regparm(3) for passed-in pt_regs pointer · b12bdaf1
    Brian Gerst authored
    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 take the pointer as an argument instead of relying on
    the assumption that the pt_regs structure overlaps the function
    arguments.
    
    Drop the use of regparm(1) due to concern about gcc bugs, and to move
    in the direction of the eventual removal of regparm(0) for asmlinkage.
    Signed-off-by: default avatarBrian Gerst <brgerst@gmail.com>
    Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
    b12bdaf1
vm86_32.c 21.5 KB