riscv64: provide efisetjmp_arch.h

efisetjmp_arch.h is required for 'make apps'.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
Heinrich Schuchardt 2021-06-23 22:44:31 +02:00
parent b5f98d40fe
commit df31239ac5
1 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,38 @@
#ifndef GNU_EFI_RISCV64_SETJMP_H
#define GNU_EFI_RISCV64_SETJMP_H
#define JMPBUF_ALIGN 8
typedef struct {
/* GP regs */
UINT64 s0;
UINT64 s1;
UINT64 s2;
UINT64 s3;
UINT64 s4;
UINT64 s5;
UINT64 s6;
UINT64 s7;
UINT64 s8;
UINT64 s9;
UINT64 s10;
UINT64 s11;
UINT64 sp;
UINT64 ra;
/* FP regs */
UINT64 fs0;
UINT64 fs1;
UINT64 fs2;
UINT64 fs3;
UINT64 fs4;
UINT64 fs5;
UINT64 fs6;
UINT64 fs7;
UINT64 fs8;
UINT64 fs9;
UINT64 fs10;
UINT64 fs11;
} ALIGN(JMPBUF_ALIGN) jmp_buf[1];
#endif /* GNU_EFI_RISCV64_SETJMP_H */