diff options
| author | Bernard Xiong <[email protected]> | 2017-11-01 21:34:38 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2017-11-01 21:34:38 +0800 |
| commit | 6d32adbce7392bbcf197ba4f6aa03d3642d8c8a8 (patch) | |
| tree | dcd20a37e7a72926d52c08362063c52e44222293 | |
| parent | 7209a74e1c733b366881694e59a86e11a44ff417 (diff) | |
| parent | 376ac91b67ef180a027716cb4ab233cdca935595 (diff) | |
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
| -rw-r--r-- | include/rthw.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/rthw.h b/include/rthw.h index fd5e6f3195..d517228083 100644 --- a/include/rthw.h +++ b/include/rthw.h @@ -48,15 +48,29 @@ extern "C" { #define HWREG8(x) (*((volatile rt_uint8_t *)(x))) #endif +#ifndef RT_CPU_CACHE_LINE_SZ +#define RT_CPU_CACHE_LINE_SZ 32 +#endif + +enum RT_HW_CACHE_OPS +{ + RT_HW_CACHE_FLUSH = 0x01, + RT_HW_CACHE_INVALIDATE = 0x02, +}; + /* * CPU interfaces */ void rt_hw_cpu_icache_enable(void); void rt_hw_cpu_icache_disable(void); rt_base_t rt_hw_cpu_icache_status(void); +void rt_hw_cpu_icache_ops(int ops, void* addr, int size); + void rt_hw_cpu_dcache_enable(void); void rt_hw_cpu_dcache_disable(void); rt_base_t rt_hw_cpu_dcache_status(void); +void rt_hw_cpu_dcache_ops(int ops, void* addr, int size); + void rt_hw_cpu_reset(void); void rt_hw_cpu_shutdown(void); |
