xref: /DragonStub/inc/loongarch64/efisetjmp_arch.h (revision c2102ae05917d81ffc7b854003415e575fc90764)
1 #ifndef GNU_EFI_LOONGARCH64_SETJMP_H
2 #define GNU_EFI_LOONGARCH64_SETJMP_H
3 
4 #define JMPBUF_ALIGN 8
5 
6 typedef struct {
7 	/* GP regs */
8 	UINT64	RA;
9 	UINT64	SP;
10 	UINT64	FP;
11 
12 	UINT64	S0;
13 	UINT64	S1;
14 	UINT64	S2;
15 	UINT64	S3;
16 	UINT64	S4;
17 	UINT64	S5;
18 	UINT64	S6;
19 	UINT64	S7;
20 	UINT64	S8;
21 } ALIGN(JMPBUF_ALIGN) jmp_buf[1];
22 
23 #endif /* GNU_EFI_LOONGARCH64_SETJMP_H */
24