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/* SPDX-License-Identifier: GPL-2.0+ */
2
3#ifndef __RISCV_LINKAGE_H__
4#define __RISCV_LINKAGE_H__
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
20#if __riscv_xlen == 64
22#define LREG ld
23
25#define SREG sd
26
28#define REGSZ 8
29
31#define RVPTR .dword
32#elif __riscv_xlen == 32
34#define LREG lw
35
37#define SREG sw
38
40#define REGSZ 4
41
43#define RVPTR .word
44#endif
45
46#ifdef __cplusplus
47}
48#endif
49
50#endif /* __RISCV_LINKAGE_H__ */