Skip to content

Commit 64f8086

Browse files
committed
feat: Kconfig: moving the arm64 specified configs to sub-menu
Just for better readability. Signed-off-by: Shell <[email protected]>
1 parent dafc5f7 commit 64f8086

File tree

2 files changed

+28
-27
lines changed

2 files changed

+28
-27
lines changed

libcpu/Kconfig

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,4 @@
1-
if ARCH_ARMV8 && ARCH_CPU_64BIT
2-
menu "AArch64 Architecture Configuration"
3-
config ARCH_TEXT_OFFSET
4-
hex "Text offset"
5-
default 0x200000
6-
config ARCH_RAM_OFFSET
7-
hex "RAM offset"
8-
default 0
9-
config ARCH_SECONDARY_CPU_STACK_SIZE
10-
int "Secondary CPU stack size"
11-
default 4096
12-
config ARCH_HAVE_EFFICIENT_UNALIGNED_ACCESS
13-
bool
14-
default y
15-
config ARCH_USING_GENERIC_CPUID
16-
bool "Using generic cpuid implemenation"
17-
select ARCH_USING_HW_THREAD_SELF
18-
default y if RT_USING_OFW
19-
default n
20-
config ARCH_HEAP_SIZE
21-
hex "Size of system heap"
22-
default 0x4000000
23-
config ARCH_INIT_PAGE_SIZE
24-
hex "Size of init page region"
25-
default 0x200000
26-
endmenu
27-
endif
1+
rsource "aarch64/Kconfig"
282

293
config ARCH_CPU_64BIT
304
bool

libcpu/aarch64/Kconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
if ARCH_ARMV8 && ARCH_CPU_64BIT
2+
menu "AArch64 Architecture Configuration"
3+
config ARCH_TEXT_OFFSET
4+
hex "Text offset"
5+
default 0x200000
6+
config ARCH_RAM_OFFSET
7+
hex "RAM offset"
8+
default 0
9+
config ARCH_SECONDARY_CPU_STACK_SIZE
10+
int "Secondary CPU stack size"
11+
default 4096
12+
config ARCH_HAVE_EFFICIENT_UNALIGNED_ACCESS
13+
bool
14+
default y
15+
config ARCH_USING_GENERIC_CPUID
16+
bool "Using generic cpuid implemenation"
17+
select ARCH_USING_HW_THREAD_SELF
18+
default y if RT_USING_OFW
19+
default n
20+
config ARCH_HEAP_SIZE
21+
hex "Size of system heap"
22+
default 0x4000000
23+
config ARCH_INIT_PAGE_SIZE
24+
hex "Size of init page region"
25+
default 0x200000
26+
endmenu
27+
endif

0 commit comments

Comments
 (0)