diff options
| author | LiuLingze <[email protected]> | 2024-03-19 07:38:47 +0000 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2024-03-19 08:10:43 -0400 |
| commit | 26b40d534ce6379da469b4b3baf5d1b90f5cfcd0 (patch) | |
| tree | 63ce82462a9558290204ca24544d174d8f5f2da2 /libcpu | |
| parent | 727629b86bfe93e148c9d87f03158fdcc7755f36 (diff) | |
[bsp][cv1800b] fix a int-conversion warning
Signed-off-by: LiuLingze <[email protected]>
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/risc-v/t-head/c906/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/risc-v/t-head/c906/mmu.c b/libcpu/risc-v/t-head/c906/mmu.c index 1754e5aaa4..39c2b59b5d 100644 --- a/libcpu/risc-v/t-head/c906/mmu.c +++ b/libcpu/risc-v/t-head/c906/mmu.c @@ -575,7 +575,7 @@ void *rt_hw_mmu_pgtbl_create(void) mmu_table = (rt_ubase_t *)rt_pages_alloc_ext(0, PAGE_ANY_AVAILABLE); if (!mmu_table) { - return -RT_ENOMEM; + return RT_NULL; } rt_memcpy(mmu_table, rt_kernel_space.page_table, ARCH_PAGE_SIZE); rt_hw_cpu_dcache_ops(RT_HW_CACHE_FLUSH, mmu_table, ARCH_PAGE_SIZE); |
