zig/lib/libc/include/x86_64-netbsd-none/machine/setjmp.h
Alex Rønne Petersen 553cb3ed46
libc: Add NetBSD system and libc headers from 10.1.
sys/param.h was manually adjusted to not define __NetBSD_Version__ since it will
be defined by the compiler.
2025-05-17 04:41:27 +02:00

28 lines
No EOL
593 B
C
Vendored

/* $NetBSD: setjmp.h,v 1.2 2008/10/26 00:08:15 mrg Exp $ */
#ifdef __x86_64__
/*
* machine/setjmp.h: machine dependent setjmp-related information.
* These are only the callee-saved registers, code calling setjmp
* will expect the rest to be clobbered anyway.
*/
#define _JB_RBX 0
#define _JB_RBP 1
#define _JB_R12 2
#define _JB_R13 3
#define _JB_R14 4
#define _JB_R15 5
#define _JB_RSP 6
#define _JB_PC 7
#define _JB_SIGFLAG 8
#define _JB_SIGMASK 9
#define _JBLEN 11 /* size, in longs, of a jmp_buf */
#else /* __x86_64__ */
#include <i386/setjmp.h>
#endif /* __x86_64__ */