summaryrefslogtreecommitdiffstats
path: root/src/arch/riscv/include/bits/setjmp.h
blob: 5186fadaf34dab05214c194162989d088914bbbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _BITS_SETJMP_H
#define _BITS_SETJMP_H

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );

/** A jump buffer */
typedef struct {
	/** Return address (ra) */
	unsigned long ra;
	/** Stack pointer (sp) */
	unsigned long sp;
	/** Callee-saved registers (s0-s11) */
	unsigned long s[12];
} jmp_buf[1];

#endif /* _BITS_SETJMP_H */