diff options
| author | Shell <[email protected]> | 2023-01-09 10:08:55 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-01-08 21:08:55 -0500 |
| commit | 7450ef6c4d71f992444d27f4a26c16f813ed8e55 (patch) | |
| tree | 1d9b450d85c2c048cae2410e97ef9edfc2868323 /include | |
| parent | 7f9ccd3c809afa6b54f0d453f2edcc8367a6aeb8 (diff) | |
[rt-smart] kernel virtual memory management layer (#6809)
synchronize virtual memory system works.
adding kernel virtual memory management layer for page-based MMU enabled architecture
porting libcpu MMU codes
porting lwp memory related codes
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 4 | ||||
| -rw-r--r-- | include/rthw.h | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 593bd856b3..82c41f73c1 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -356,7 +356,9 @@ typedef int (*init_fn_t)(void); #define RT_EIO 8 /**< IO error */ #define RT_EINTR 9 /**< Interrupted system call */ #define RT_EINVAL 10 /**< Invalid argument */ -#define RT_ETRAP 11 /**< trap event */ +#define RT_ETRAP 11 /**< Trap event */ +#define RT_ENOENT 12 /**< No entry */ +#define RT_ENOSPC 13 /**< No space left */ /**@}*/ diff --git a/include/rthw.h b/include/rthw.h index 3c1e743279..c56223f1cb 100644 --- a/include/rthw.h +++ b/include/rthw.h @@ -54,6 +54,11 @@ enum RT_HW_CACHE_OPS * CPU interfaces */ #ifdef RT_USING_CACHE + +#ifdef ARCH_RISCV64 +#include <cache.h> +#endif + void rt_hw_cpu_icache_enable(void); void rt_hw_cpu_icache_disable(void); rt_base_t rt_hw_cpu_icache_status(void); |
