CVSROOT: /cvs Module name: src Changes by: guent...@cvs.openbsd.org 2024/01/30 23:06:28
Modified files: sys/arch/amd64/amd64: trap.c sys/arch/amd64/include: frame.h gnu/usr.bin/binutils/gdb: amd64obsd-tdep.c Log message: Swap the r10 and rcx registers in the amd64 trapframe so that the first six entries are in the same order as syscall arguments, such that syscall() can just use the trapframe as the argument vector for mi_syscall() and not need to reorder into another buffer on the stack. This doesn't affect coredump layout or ptrace(2), but does affect kernel crash dumps. Possibility noted during miod@'s cleanup of the MD syscall() implementations ok mlarkin@ kurt@