handle syscall arguments in 64bit mode

The AMD64 ABI passes the first six arguments in the registers
RDI, RSI, RDX, RCX, R8, R9, not on the stack like the IA32
ABI does.