SyterKit 0.4.0.x
SyterKit is a bare-metal framework
Loading...
Searching...
No Matches
linkage.h
Go to the documentation of this file.
1#ifndef __RISCV64_LINKAGE_H__
2#define __RISCV64_LINKAGE_H__
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#if __riscv_xlen == 64
9#define LREG ld
10#define SREG sd
11#define REGSZ 8
12#define RVPTR .dword
13#elif __riscv_xlen == 32
14#define LREG lw
15#define SREG sw
16#define REGSZ 4
17#define RVPTR .word
18#endif
19
20#ifdef __cplusplus
21}
22#endif
23
24#endif /* __RISCV64_LINKAGE_H__ */