2023-09-26 11:35:27 +08:00
|
|
|
if ARCH_ARMV8 && ARCH_CPU_64BIT
|
|
|
|
menu "AArch64 Architecture Configuration"
|
|
|
|
config ARCH_TEXT_OFFSET
|
|
|
|
hex "Text offset"
|
|
|
|
default 0x200000
|
|
|
|
config ARCH_RAM_OFFSET
|
|
|
|
hex "RAM offset"
|
|
|
|
default 0
|
|
|
|
config ARCH_SECONDARY_CPU_STACK_SIZE
|
|
|
|
int "Secondary CPU stack size"
|
|
|
|
default 4096
|
|
|
|
config ARCH_HAVE_EFFICIENT_UNALIGNED_ACCESS
|
|
|
|
bool
|
|
|
|
default y
|
2024-05-16 15:45:12 +08:00
|
|
|
config ARCH_USING_GENERIC_CPUID
|
|
|
|
bool "Using generic cpuid implemenation"
|
2024-05-28 14:27:55 +08:00
|
|
|
select ARCH_USING_HW_THREAD_SELF
|
|
|
|
default y if RT_USING_OFW
|
2024-05-16 15:45:12 +08:00
|
|
|
default n
|
2024-06-26 14:36:49 +08:00
|
|
|
config ARCH_HEAP_SIZE
|
|
|
|
hex "Size of system heap"
|
|
|
|
default 0x4000000
|
|
|
|
config ARCH_INIT_PAGE_SIZE
|
|
|
|
hex "Size of init page region"
|
|
|
|
default 0x200000
|
2023-09-26 11:35:27 +08:00
|
|
|
endmenu
|
|
|
|
endif
|
|
|
|
|
2018-10-26 06:35:42 +08:00
|
|
|
config ARCH_CPU_64BIT
|
|
|
|
bool
|
|
|
|
|
2022-12-03 12:07:44 +08:00
|
|
|
config RT_USING_CACHE
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2023-03-23 20:06:50 +08:00
|
|
|
config RT_USING_HW_ATOMIC
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2022-01-25 15:00:47 +08:00
|
|
|
config ARCH_CPU_BIG_ENDIAN
|
|
|
|
bool
|
|
|
|
|
2022-12-03 12:07:44 +08:00
|
|
|
config ARCH_ARM_BOOTWITH_FLUSH_CACHE
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
|
|
|
config ARCH_CPU_STACK_GROWS_UPWARD
|
2017-10-31 09:54:23 +08:00
|
|
|
bool
|
2022-12-03 12:07:44 +08:00
|
|
|
default n
|
2017-10-31 09:54:23 +08:00
|
|
|
|
2019-05-28 21:30:45 +08:00
|
|
|
config RT_USING_CPU_FFS
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2022-12-03 12:07:44 +08:00
|
|
|
config ARCH_MM_MMU
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_MM_MPU
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_ARM
|
|
|
|
bool
|
|
|
|
|
2017-10-31 09:54:23 +08:00
|
|
|
config ARCH_ARM_CORTEX_M
|
|
|
|
bool
|
|
|
|
select ARCH_ARM
|
|
|
|
|
2024-04-11 08:47:53 +08:00
|
|
|
config ARCH_ARM_CORTEX_R
|
|
|
|
bool
|
|
|
|
select ARCH_ARM
|
|
|
|
|
2018-09-22 22:22:18 +08:00
|
|
|
config ARCH_ARM_CORTEX_FPU
|
|
|
|
bool
|
|
|
|
|
2022-06-29 14:08:57 +08:00
|
|
|
config ARCH_ARM_CORTEX_SECURE
|
|
|
|
bool
|
|
|
|
|
2017-10-31 09:54:23 +08:00
|
|
|
config ARCH_ARM_CORTEX_M0
|
|
|
|
bool
|
|
|
|
select ARCH_ARM_CORTEX_M
|
|
|
|
|
|
|
|
config ARCH_ARM_CORTEX_M3
|
|
|
|
bool
|
|
|
|
select ARCH_ARM_CORTEX_M
|
2019-05-28 21:30:45 +08:00
|
|
|
select RT_USING_CPU_FFS
|
2023-03-23 20:06:50 +08:00
|
|
|
select RT_USING_HW_ATOMIC
|
2017-10-31 09:54:23 +08:00
|
|
|
|
|
|
|
config ARCH_ARM_MPU
|
|
|
|
bool
|
|
|
|
depends on ARCH_ARM
|
2022-12-03 12:07:44 +08:00
|
|
|
select ARCH_MM_MPU
|
2017-10-31 09:54:23 +08:00
|
|
|
|
|
|
|
config ARCH_ARM_CORTEX_M4
|
|
|
|
bool
|
|
|
|
select ARCH_ARM_CORTEX_M
|
2019-05-28 21:30:45 +08:00
|
|
|
select RT_USING_CPU_FFS
|
2023-03-23 20:06:50 +08:00
|
|
|
select RT_USING_HW_ATOMIC
|
2017-10-31 09:54:23 +08:00
|
|
|
|
|
|
|
config ARCH_ARM_CORTEX_M7
|
|
|
|
bool
|
|
|
|
select ARCH_ARM_CORTEX_M
|
2019-05-28 21:30:45 +08:00
|
|
|
select RT_USING_CPU_FFS
|
2022-12-03 12:07:44 +08:00
|
|
|
select RT_USING_CACHE
|
2023-10-17 17:20:54 +08:00
|
|
|
|
|
|
|
config ARCH_ARM_CORTEX_M85
|
|
|
|
bool
|
|
|
|
select ARCH_ARM_CORTEX_M
|
|
|
|
select RT_USING_CPU_FFS
|
2023-03-23 20:06:50 +08:00
|
|
|
select RT_USING_HW_ATOMIC
|
2017-10-31 09:54:23 +08:00
|
|
|
|
2023-08-01 00:00:49 +08:00
|
|
|
config ARCH_ARM_CORTEX_M23
|
|
|
|
bool
|
|
|
|
select ARCH_ARM_CORTEX_M
|
|
|
|
select RT_USING_HW_ATOMIC
|
|
|
|
|
2022-04-01 22:45:11 +08:00
|
|
|
config ARCH_ARM_CORTEX_M33
|
|
|
|
bool
|
|
|
|
select ARCH_ARM_CORTEX_M
|
|
|
|
select RT_USING_CPU_FFS
|
2023-03-23 20:06:50 +08:00
|
|
|
select RT_USING_HW_ATOMIC
|
2022-04-01 22:45:11 +08:00
|
|
|
|
2017-10-31 09:54:23 +08:00
|
|
|
config ARCH_ARM_CORTEX_R
|
|
|
|
bool
|
|
|
|
select ARCH_ARM
|
2023-03-23 20:06:50 +08:00
|
|
|
select RT_USING_HW_ATOMIC
|
2017-10-31 09:54:23 +08:00
|
|
|
|
2024-04-11 08:47:53 +08:00
|
|
|
config ARCH_ARM_CORTEX_R52
|
|
|
|
bool
|
|
|
|
select ARCH_ARM_CORTEX_R
|
|
|
|
|
2017-10-31 09:54:23 +08:00
|
|
|
config ARCH_ARM_MMU
|
|
|
|
bool
|
2022-12-03 12:07:44 +08:00
|
|
|
select RT_USING_CACHE
|
|
|
|
select ARCH_MM_MMU
|
2017-10-31 09:54:23 +08:00
|
|
|
depends on ARCH_ARM
|
|
|
|
|
2022-12-16 18:38:28 +08:00
|
|
|
if RT_USING_SMART
|
2023-07-22 10:36:42 +08:00
|
|
|
config KERNEL_VADDR_START
|
|
|
|
hex "The virtural address of kernel start"
|
|
|
|
default 0xffff000000000000 if ARCH_ARMV8
|
|
|
|
default 0xc0000000 if ARCH_ARM
|
2024-06-18 11:15:59 +08:00
|
|
|
default 0xffffffc000000000 if ARCH_RISCV && ARCH_REMAP_KERNEL
|
2023-07-22 10:36:42 +08:00
|
|
|
default 0x80000000 if ARCH_RISCV
|
|
|
|
depends on ARCH_MM_MMU
|
|
|
|
|
|
|
|
config RT_IOREMAP_LATE
|
|
|
|
bool "Support to create IO mapping in the kernel address space after system initlalization."
|
|
|
|
default n
|
|
|
|
depends on ARCH_ARM_CORTEX_A
|
|
|
|
depends on ARCH_MM_MMU
|
2022-12-16 18:38:28 +08:00
|
|
|
endif
|
2022-12-03 12:07:44 +08:00
|
|
|
|
2017-12-19 17:39:23 +08:00
|
|
|
config ARCH_ARM_ARM9
|
|
|
|
bool
|
|
|
|
select ARCH_ARM
|
|
|
|
|
|
|
|
config ARCH_ARM_ARM11
|
|
|
|
bool
|
|
|
|
select ARCH_ARM
|
|
|
|
|
2017-11-01 13:30:17 +08:00
|
|
|
config ARCH_ARM_CORTEX_A
|
2017-10-31 09:54:23 +08:00
|
|
|
bool
|
|
|
|
select ARCH_ARM
|
2023-02-06 01:11:04 +08:00
|
|
|
select ARCH_ARM_MMU
|
2021-05-24 17:19:05 +08:00
|
|
|
select RT_USING_CPU_FFS
|
2023-03-23 20:06:50 +08:00
|
|
|
select RT_USING_HW_ATOMIC
|
2017-10-31 09:54:23 +08:00
|
|
|
|
2021-05-01 19:15:37 +08:00
|
|
|
if ARCH_ARM_CORTEX_A
|
|
|
|
config RT_SMP_AUTO_BOOT
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2021-05-24 17:19:05 +08:00
|
|
|
config RT_USING_GIC_V2
|
|
|
|
bool
|
|
|
|
default n
|
2021-05-01 19:15:37 +08:00
|
|
|
|
2021-05-24 17:19:05 +08:00
|
|
|
config RT_USING_GIC_V3
|
|
|
|
bool
|
|
|
|
default n
|
2021-05-01 19:15:37 +08:00
|
|
|
|
2021-05-24 17:19:05 +08:00
|
|
|
config RT_NO_USING_GIC
|
|
|
|
bool
|
|
|
|
default y if !RT_USING_GIC_V2 && !RT_USING_GIC_V3
|
2021-05-01 19:15:37 +08:00
|
|
|
endif
|
|
|
|
|
2017-11-01 13:30:17 +08:00
|
|
|
config ARCH_ARM_CORTEX_A5
|
|
|
|
bool
|
|
|
|
select ARCH_ARM_CORTEX_A
|
|
|
|
|
2017-10-31 09:54:23 +08:00
|
|
|
config ARCH_ARM_CORTEX_A7
|
|
|
|
bool
|
2017-11-01 13:30:17 +08:00
|
|
|
select ARCH_ARM_CORTEX_A
|
2017-10-31 09:54:23 +08:00
|
|
|
|
|
|
|
config ARCH_ARM_CORTEX_A8
|
|
|
|
bool
|
2017-11-01 13:30:17 +08:00
|
|
|
select ARCH_ARM_CORTEX_A
|
2017-10-31 09:54:23 +08:00
|
|
|
|
|
|
|
config ARCH_ARM_CORTEX_A9
|
|
|
|
bool
|
2017-11-01 13:30:17 +08:00
|
|
|
select ARCH_ARM_CORTEX_A
|
2017-10-31 09:54:23 +08:00
|
|
|
|
2023-06-11 07:06:16 +08:00
|
|
|
config ARCH_ARM_CORTEX_A55
|
|
|
|
bool
|
|
|
|
select ARCH_ARM_CORTEX_A
|
|
|
|
|
2022-12-03 12:07:44 +08:00
|
|
|
config ARCH_ARM_SECURE_MODE
|
|
|
|
bool "Running in secure mode [ARM Cortex-A]"
|
|
|
|
default n
|
|
|
|
depends on ARCH_ARM_CORTEX_A
|
|
|
|
|
|
|
|
config RT_BACKTRACE_FUNCTION_NAME
|
|
|
|
bool "To show function name when backtrace."
|
|
|
|
default n
|
|
|
|
depends on ARCH_ARM_CORTEX_A
|
|
|
|
|
2020-05-25 17:46:48 +08:00
|
|
|
config ARCH_ARMV8
|
|
|
|
bool
|
2022-12-03 12:07:44 +08:00
|
|
|
select ARCH_ARM
|
2022-12-20 17:49:37 +08:00
|
|
|
select ARCH_ARM_MMU
|
2023-10-25 20:31:25 +08:00
|
|
|
select RT_USING_CPU_FFS
|
2020-05-25 17:46:48 +08:00
|
|
|
|
2017-10-31 09:54:23 +08:00
|
|
|
config ARCH_MIPS
|
|
|
|
bool
|
|
|
|
|
2020-04-05 13:29:29 +08:00
|
|
|
config ARCH_MIPS64
|
|
|
|
bool
|
2022-01-25 15:00:47 +08:00
|
|
|
select ARCH_CPU_64BIT
|
2020-04-05 13:29:29 +08:00
|
|
|
|
2017-10-31 09:54:23 +08:00
|
|
|
config ARCH_MIPS_XBURST
|
|
|
|
bool
|
|
|
|
select ARCH_MIPS
|
|
|
|
|
|
|
|
config ARCH_ANDES
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_CSKY
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_POWERPC
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_RISCV
|
|
|
|
bool
|
|
|
|
|
2018-10-26 06:35:42 +08:00
|
|
|
config ARCH_RISCV_FPU
|
|
|
|
bool
|
|
|
|
|
2024-09-02 16:38:42 +08:00
|
|
|
config ARCH_RISCV_VECTOR
|
|
|
|
bool
|
|
|
|
|
2020-11-20 12:05:37 +08:00
|
|
|
config ARCH_RISCV_FPU_S
|
|
|
|
select ARCH_RISCV_FPU
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_RISCV_FPU_D
|
|
|
|
select ARCH_RISCV_FPU
|
|
|
|
bool
|
|
|
|
|
2018-10-26 06:35:42 +08:00
|
|
|
config ARCH_RISCV32
|
|
|
|
select ARCH_RISCV
|
|
|
|
bool
|
|
|
|
|
|
|
|
config ARCH_RISCV64
|
|
|
|
select ARCH_RISCV
|
|
|
|
select ARCH_CPU_64BIT
|
|
|
|
bool
|
|
|
|
|
2024-07-15 12:06:17 +08:00
|
|
|
if ARCH_RISCV64
|
2024-09-02 16:38:42 +08:00
|
|
|
config ARCH_USING_NEW_CTX_SWITCH
|
|
|
|
bool
|
|
|
|
default y
|
|
|
|
|
2024-07-15 12:06:17 +08:00
|
|
|
config ARCH_USING_RISCV_COMMON64
|
|
|
|
bool
|
|
|
|
depends on ARCH_RISCV64
|
|
|
|
select RT_USING_CPUTIME
|
2024-09-02 16:38:42 +08:00
|
|
|
select ARCH_USING_NEW_CTX_SWITCH
|
2024-07-15 12:06:17 +08:00
|
|
|
help
|
|
|
|
Using the common64 implementation under ./libcpu/risc-v
|
|
|
|
endif
|
|
|
|
|
2024-07-11 11:00:04 +08:00
|
|
|
config ARCH_REMAP_KERNEL
|
|
|
|
bool
|
|
|
|
depends on RT_USING_SMART
|
|
|
|
help
|
|
|
|
Remapping kernel image to high virtual address region
|
|
|
|
|
|
|
|
config ARCH_USING_ASID
|
|
|
|
bool
|
|
|
|
depends on RT_USING_SMART
|
|
|
|
help
|
|
|
|
Using ASID support from architecture
|
2024-06-18 11:15:59 +08:00
|
|
|
|
2017-10-31 09:54:23 +08:00
|
|
|
config ARCH_IA32
|
|
|
|
bool
|
|
|
|
|
2018-11-24 17:41:55 +08:00
|
|
|
config ARCH_TIDSP
|
2018-11-18 12:06:52 +08:00
|
|
|
bool
|
2018-11-24 17:41:55 +08:00
|
|
|
|
|
|
|
config ARCH_TIDSP_C28X
|
|
|
|
bool
|
|
|
|
select ARCH_TIDSP
|
2018-11-18 12:06:52 +08:00
|
|
|
select ARCH_CPU_STACK_GROWS_UPWARD
|
|
|
|
|
2017-10-31 09:54:23 +08:00
|
|
|
config ARCH_HOST_SIMULATOR
|
|
|
|
bool
|
2018-11-11 15:56:02 +08:00
|
|
|
|
|
|
|
config ARCH_CPU_STACK_GROWS_UPWARD
|
|
|
|
bool
|
|
|
|
default n
|
2024-05-28 14:27:55 +08:00
|
|
|
|
|
|
|
config ARCH_USING_HW_THREAD_SELF
|
|
|
|
bool
|
|
|
|
default n
|