We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ca1702 commit 7233a4aCopy full SHA for 7233a4a
bsp/phytium/aarch64/Kconfig
@@ -64,3 +64,6 @@ menu "Standalone Setting"
64
65
endmenu
66
67
+config KERNEL_ASPACE_START
68
+ hex
69
+ default 0x1000
libcpu/aarch64/common/mmu.c
@@ -54,8 +54,13 @@
54
55
/* restrict virtual address on usage of RT_NULL */
56
#ifndef KERNEL_VADDR_START
57
-#define KERNEL_VADDR_START 0x1000
+#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)
61
#endif
62
+#endif /* KERNEL_VADDR_START */
63
+
volatile unsigned long MMUTable[512] __attribute__((aligned(4 * 1024)));
0 commit comments