Skip to content

Commit 5c9f618

Browse files
authored
libcpu: cleanup undefined rt_hw_mmu_kernel_map_init (#10177)
* libcpu: cleanup undefined rt_hw_mmu_kernel_map_init rt_hw_mmu_kernel_map_init() is declared in header files but no definition found, cleanup the code. Signed-off-by: Chen Wang <[email protected]> * bsp: allwinner: d1: remove calling of rt_hw_mmu_kernel_map_init rt_hw_mmu_kernel_map_init is an undefined function, calling it is meaningless. Signed-off-by: Chen Wang <[email protected]> --------- Signed-off-by: Chen Wang <[email protected]>
1 parent 0c4a204 commit 5c9f618

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

bsp/allwinner/d1/board/board.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ void rt_hw_board_init(void)
8383
#ifdef RT_USING_SMART
8484
rt_page_init(init_page_region);
8585
rt_hw_mmu_map_init(&mmu_info,(void *)USER_VADDR_START, USER_VADDR_TOP - USER_VADDR_START, (rt_size_t *)MMUTable, 0);
86-
rt_hw_mmu_kernel_map_init(&mmu_info, 0x00000000UL, USER_VADDR_START - 1);
8786
//将低1GB MMIO区域设置为无Cache与Strong Order访存模式
8887
MMUTable[0] &= ~PTE_CACHE;
8988
MMUTable[0] &= ~PTE_SHARE;

libcpu/aarch64/common/include/mmu.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ void *rt_hw_mmu_map(struct rt_aspace *aspace, void *v_addr, void *p_addr,
115115
void rt_hw_mmu_unmap(struct rt_aspace *aspace, void *v_addr, size_t size);
116116
void rt_hw_aspace_switch(struct rt_aspace *aspace);
117117
void *rt_hw_mmu_v2p(struct rt_aspace *aspace, void *vaddr);
118-
void rt_hw_mmu_kernel_map_init(struct rt_aspace *aspace, rt_size_t vaddr_start,
119-
rt_size_t size);
120118
void *rt_hw_mmu_pgtbl_create(void);
121119
void rt_hw_mmu_pgtbl_delete(void *pgtbl);
122120
void *rt_hw_mmu_tbl_get(void);

libcpu/arm/cortex-a/mmu.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ void rt_hw_aspace_switch(struct rt_aspace *aspace);
121121
void rt_hw_mmu_switch(void *tbl);
122122

123123
void *rt_hw_mmu_v2p(struct rt_aspace *aspace, void *vaddr);
124-
void rt_hw_mmu_kernel_map_init(struct rt_aspace *aspace, size_t vaddr_start, size_t size);
125124
void *rt_hw_mmu_tbl_get(void);
126125

127126
int rt_hw_mmu_control(struct rt_aspace *aspace, void *vaddr, size_t size, enum rt_mmu_cntl cmd);

libcpu/risc-v/common64/mmu.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ void *rt_hw_mmu_tbl_get(void);
6060
int rt_hw_mmu_map_init(rt_aspace_t aspace, void *v_address, rt_ubase_t size,
6161
rt_ubase_t *vtable, rt_ubase_t pv_off);
6262
void rt_hw_mmu_setup(rt_aspace_t aspace, struct mem_desc *mdesc, int desc_nr);
63-
void rt_hw_mmu_kernel_map_init(rt_aspace_t aspace, rt_ubase_t vaddr_start,
64-
rt_ubase_t size);
6563
void *rt_hw_mmu_map(rt_aspace_t aspace, void *v_addr, void *p_addr, size_t size,
6664
size_t attr);
6765
void rt_hw_mmu_unmap(rt_aspace_t aspace, void *v_addr, size_t size);

0 commit comments

Comments
 (0)