diff options
| author | Shell <[email protected]> | 2022-12-10 22:16:42 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-10 22:16:42 +0800 |
| commit | e991be9c51c54883b56ee3d9e7f30db33c404192 (patch) | |
| tree | 33e4e9318e0d03c68bd0dcda029d9ce4b5b3bf6b /include | |
| parent | 190eda6ab03ca294238da59c3eb1069dac276a93 (diff) | |
[smart][risc-v/libcpu] port rv64 cpu code (#6704)
* [risc-v/libcpu] porting Smart & RTOS
* [fix] rv64 plic
* [risc-v/rv64] remove macro in rtdef
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 4216a5fc48..393b589d36 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -155,9 +155,6 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ /* Common Utilities */ -#define _RT_STRINGIFY(x...) #x -#define RT_STRINGIFY(x...) _RT_STRINGIFY(x) - #define RT_UNUSED(x) ((void)x) /* Compiler Related Definitions */ @@ -190,6 +187,8 @@ typedef __gnuc_va_list va_list; #define va_end(v) __builtin_va_end(v) #define va_arg(v,l) __builtin_va_arg(v,l) #endif /* RT_USING_LIBC */ +#define __RT_STRINGIFY(x...) #x +#define RT_STRINGIFY(x...) __RT_STRINGIFY(x) #define RT_SECTION(x) __attribute__((section(x))) #define RT_USED __attribute__((used)) #define ALIGN(n) __attribute__((aligned(n))) |
