mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-24 05:04:10 +08:00
[ci] open ci check with function declaration warning (#8546)
This commit is contained in:
@@ -602,6 +602,13 @@ static int _map_single_page_2M(unsigned long *lv0_tbl, unsigned long va,
|
||||
return 0;
|
||||
}
|
||||
|
||||
void *rt_hw_mmu_tbl_get()
|
||||
{
|
||||
uintptr_t tbl;
|
||||
__asm__ volatile("MRS %0, TTBR0_EL1" : "=r"(tbl));
|
||||
return rt_kmem_p2v((void *)(tbl & ((1ul << 48) - 2)));
|
||||
}
|
||||
|
||||
void *rt_ioremap_early(void *paddr, size_t size)
|
||||
{
|
||||
volatile size_t count;
|
||||
|
||||
@@ -109,13 +109,7 @@ void rt_hw_mmu_kernel_map_init(struct rt_aspace *aspace, rt_size_t vaddr_start,
|
||||
rt_size_t size);
|
||||
void *rt_hw_mmu_pgtbl_create(void);
|
||||
void rt_hw_mmu_pgtbl_delete(void *pgtbl);
|
||||
|
||||
rt_inline void *rt_hw_mmu_tbl_get()
|
||||
{
|
||||
uintptr_t tbl;
|
||||
__asm__ volatile("MRS %0, TTBR0_EL1" : "=r"(tbl));
|
||||
return rt_kmem_p2v((void *)(tbl & ((1ul << 48) - 2)));
|
||||
}
|
||||
void *rt_hw_mmu_tbl_get(void);
|
||||
|
||||
static inline void *rt_hw_mmu_kernel_v2p(void *v_addr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user