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