From abeccfecdd95f51f73e26b6326beef4113d893fa Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 29 Apr 2021 11:29:05 +0000 Subject: [PATCH] add riscv64 efibind.h ok drahn@ kettenis@ --- sys/stand/efi/include/riscv64/efibind.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sys/stand/efi/include/riscv64/efibind.h diff --git a/sys/stand/efi/include/riscv64/efibind.h b/sys/stand/efi/include/riscv64/efibind.h new file mode 100644 index 00000000000..1ea88acdf36 --- /dev/null +++ b/sys/stand/efi/include/riscv64/efibind.h @@ -0,0 +1,22 @@ +/* Public Domain. */ + +#include + +typedef int8_t INT8; +typedef uint8_t UINT8; +typedef int16_t INT16; +typedef uint16_t UINT16; +typedef int32_t INT32; +typedef uint32_t UINT32; +typedef int64_t INT64; +typedef uint64_t UINT64; + +typedef void VOID; + +typedef int64_t INTN; +typedef uint64_t UINTN; + +#define INTERFACE_DECL(x) struct x +#define EFIAPI + +#define EFIERR(x) (0x8000000000000000 | x) -- 2.20.1