2 * Copyright (C) 1996 Paul Mackerras.
4 * NB this file must be compiled with -O2.
10 asm ("mflr 0; stw 0,0(%0);"
11 "stw 1,4(%0); stw 2,8(%0);"
12 "mfcr 0; stw 0,12(%0);"
15 /* XXX should save fp regs as well */
20 xmon_longjmp(long *buf
, int val
)
25 "lwz 0,12(%0); mtcrf 0x38,0;"
26 "lwz 0,0(%0); lwz 1,4(%0); lwz 2,8(%0);"
28 : : "r" (buf
), "r" (val
));