xref: /nrf52832-nimble/rt-thread/libcpu/risc-v/common/cpuport.h (revision 104654410c56c573564690304ae786df310c91fc)
1 /*
2  * Copyright (c) 2006-2018, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2018-10-03     Bernard      The first version
9  */
10 
11 #ifndef CPUPORT_H__
12 #define CPUPORT_H__
13 
14 #include <rtconfig.h>
15 
16 /* bytes of register width  */
17 #ifdef ARCH_CPU_64BIT
18 #define STORE                   sd
19 #define LOAD                    ld
20 #define REGBYTES                8
21 #else
22 #define STORE                   sw
23 #define LOAD                    lw
24 #define REGBYTES                4
25 #endif
26 
27 #endif
28