Skip to content

Commit 7233a4a

Browse files
committed
update
1 parent 1ca1702 commit 7233a4a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

bsp/phytium/aarch64/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,6 @@ menu "Standalone Setting"
6464

6565
endmenu
6666

67+
config KERNEL_ASPACE_START
68+
hex
69+
default 0x1000

libcpu/aarch64/common/mmu.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,13 @@
5454

5555
/* restrict virtual address on usage of RT_NULL */
5656
#ifndef KERNEL_VADDR_START
57-
#define KERNEL_VADDR_START 0x1000
57+
#ifdef KERNEL_ASPACE_START
58+
#define KERNEL_VADDR_START KERNEL_ASPACE_START
59+
#else
60+
#define KERNEL_VADDR_START (ARCH_RAM_OFFSET + ARCH_TEXT_OFFSET)
5861
#endif
62+
#endif /* KERNEL_VADDR_START */
63+
5964

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

0 commit comments

Comments
 (0)