1*433b5ddeSmrg /* $NetBSD: setjmp.h,v 1.2 2008/10/26 00:08:15 mrg Exp $ */ 2*433b5ddeSmrg 3*433b5ddeSmrg #ifdef __x86_64__ 481918bf8Sfvdl 581918bf8Sfvdl /* 681918bf8Sfvdl * machine/setjmp.h: machine dependent setjmp-related information. 781918bf8Sfvdl * These are only the callee-saved registers, code calling setjmp 881918bf8Sfvdl * will expect the rest to be clobbered anyway. 981918bf8Sfvdl */ 1081918bf8Sfvdl 1181918bf8Sfvdl #define _JB_RBX 0 1281918bf8Sfvdl #define _JB_RBP 1 1381918bf8Sfvdl #define _JB_R12 2 1481918bf8Sfvdl #define _JB_R13 3 1581918bf8Sfvdl #define _JB_R14 4 1681918bf8Sfvdl #define _JB_R15 5 1781918bf8Sfvdl #define _JB_RSP 6 1881918bf8Sfvdl #define _JB_PC 7 1981918bf8Sfvdl #define _JB_SIGFLAG 8 2081918bf8Sfvdl #define _JB_SIGMASK 9 2181918bf8Sfvdl 2281918bf8Sfvdl #define _JBLEN 11 /* size, in longs, of a jmp_buf */ 23*433b5ddeSmrg 24*433b5ddeSmrg #else /* __x86_64__ */ 25*433b5ddeSmrg 26*433b5ddeSmrg #include <i386/setjmp.h> 27*433b5ddeSmrg 28*433b5ddeSmrg #endif /* __x86_64__ */ 29