ELF PowerPC64 ABI puts the LR save word at 16 byte offset, not 8.

This commit is contained in:
jhibbits 2013-10-25 00:17:12 +00:00
parent bbc50ebc63
commit fc498ec178

View File

@ -49,7 +49,8 @@
/* Offset to the LR Save word (ppc32) */
#define RETURN_OFFSET 4
#define RETURN_OFFSET64 8
/* Offset to LR Save word (ppc64). CR Save area sits between back chain and LR */
#define RETURN_OFFSET64 16
#define INKERNEL(x) ((x) <= VM_MAX_KERNEL_ADDRESS && \
(x) >= VM_MIN_KERNEL_ADDRESS)