blob: 01d6066450f74de27b4b67ffc064c573b0c59d46 [file] [log] [blame]
Elliott Hughes72645162013-10-04 15:59:19 -07001/* $OpenBSD: setjmp.h,v 1.1 2004/01/28 01:39:39 mickey Exp $ */
2/* $NetBSD: setjmp.h,v 1.1 2003/04/26 18:39:47 fvdl Exp $ */
3
4/*
5 * machine/setjmp.h: machine dependent setjmp-related information.
6 * These are only the callee-saved registers, code calling setjmp
7 * will expect the rest to be clobbered anyway.
8 */
9
10#define _JB_RBX 0
11#define _JB_RBP 1
12#define _JB_R12 2
13#define _JB_R13 3
14#define _JB_R14 4
15#define _JB_R15 5
16#define _JB_RSP 6
17#define _JB_PC 7
18#define _JB_SIGFLAG 8
19#define _JB_SIGMASK 9
20
21#define _JBLEN 11 /* size, in longs, of a jmp_buf */