diff options
| author | fangjianzhou <[email protected]> | 2023-12-16 18:08:11 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-16 18:08:11 +0800 |
| commit | b233e29bb63eb5fdab2a7c217c3a13584d4ab878 (patch) | |
| tree | e6089eb240fe2cbb5acde1495ce0260247b05ce4 /components | |
| parent | 6b22a0a2b7ed79cd2f64875bb7bcfd04b47d869f (diff) | |
[libcpu][aarch64] 使用设备树对内存进行初始化 (#8320)
Diffstat (limited to 'components')
| -rw-r--r-- | components/mm/ioremap.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/components/mm/ioremap.c b/components/mm/ioremap.c index 5d31185e57..49e7a5fee9 100644 --- a/components/mm/ioremap.c +++ b/components/mm/ioremap.c @@ -18,8 +18,9 @@ void *rt_ioremap_start; size_t rt_ioremap_size; #ifdef RT_USING_SMART - #include <lwp_mm.h> +#endif + #define DBG_TAG "mm.ioremap" #define DBG_LVL DBG_LOG #include <rtdbg.h> @@ -111,23 +112,3 @@ void rt_iounmap(volatile void *vaddr) rt_aspace_unmap(&rt_kernel_space, (void *)vaddr); } -#else -void *rt_ioremap(void *paddr, size_t size) -{ - return paddr; -} - -void *rt_ioremap_nocache(void *paddr, size_t size) -{ - return paddr; -} - -void *rt_ioremap_cached(void *paddr, size_t size) -{ - return paddr; -} - -void rt_iounmap(volatile void *vaddr) -{ -} -#endif |
