powerpc/64: Document the syscall ABI
authorNicholas Piggin <npiggin@gmail.com>
Wed, 14 Sep 2016 03:21:47 +0000 (13:21 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 20 Sep 2016 04:36:14 +0000 (14:36 +1000)
commit7b8845a2a2ec4d9658225cf9c53eeafb4a60314c
treefc4d0f1beeba382fb213e60bf6d4b10771d8cd2c
parente0e0d6b7390b61feb06350ef4a9594bcf84ad204
powerpc/64: Document the syscall ABI

Add some documentation for the 64-bit syscall ABI, which doesn't seem
to be documented elsewhere.

This attempts to document existing practice. The only small discrepancy
is glibc clobbers not quite matching the kernel (e.g., xer, some
vsyscalls trash cr1 whereas glibc only clobbers cr0). These will be
resolved after this document is merged.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Documentation/powerpc/syscall64-abi.txt [new file with mode: 0644]