Skip to content

Commit 8cdd8c8

Browse files
committed
fixup: restrict vstart for using of RT_NULL
1 parent d0936a4 commit 8cdd8c8

File tree

1 file changed

+2
-1
lines changed
  • libcpu/aarch64/common

1 file changed

+2
-1
lines changed

libcpu/aarch64/common/mmu.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@
5151
#define MMU_TBL_PAGE_4k_LEVEL 3
5252
#define MMU_TBL_LEVEL_NR 4
5353

54+
/* restrict virtual address on usage of RT_NULL */
5455
#ifndef KERNEL_VADDR_START
55-
#define KERNEL_VADDR_START ARCH_TEXT_OFFSET
56+
#define KERNEL_VADDR_START 0x1000
5657
#endif
5758

5859
volatile unsigned long MMUTable[512] __attribute__((aligned(4 * 1024)));

0 commit comments

Comments
 (0)