2023-12-05 00:01:26 +08:00
|
|
|
menu "Knl config"
|
|
|
|
|
|
2023-12-09 23:11:55 +08:00
|
|
|
|
|
|
|
|
menuconfig KNL_INFO
|
|
|
|
|
bool "knl info set"
|
|
|
|
|
default y
|
2024-04-01 16:10:59 +00:00
|
|
|
|
|
|
|
|
config KNL_TEST
|
|
|
|
|
bool "enable knl test."
|
|
|
|
|
default n
|
2023-12-09 23:11:55 +08:00
|
|
|
if KNL_INFO
|
2024-04-01 16:10:59 +00:00
|
|
|
config MMU
|
|
|
|
|
bool "support mmu"
|
|
|
|
|
default n
|
2024-04-07 15:04:30 +00:00
|
|
|
if MMU
|
|
|
|
|
config MSG_BUF_VADDR
|
|
|
|
|
hex "msg buf vaddr in task."
|
|
|
|
|
default 0xE0000000
|
|
|
|
|
config BOOT_FS_VADDR
|
|
|
|
|
hex "boot fs vaddr in init task."
|
|
|
|
|
default 0xE0001000
|
|
|
|
|
endif
|
2024-03-31 16:06:11 +00:00
|
|
|
config PAGE_SHIFT
|
|
|
|
|
int "page shift"
|
|
|
|
|
default 9
|
2024-04-27 03:47:45 +00:00
|
|
|
config PSCI
|
|
|
|
|
bool "support psci"
|
|
|
|
|
default n
|
2024-03-31 16:06:11 +00:00
|
|
|
config SMP
|
|
|
|
|
bool "support smp."
|
|
|
|
|
default n
|
|
|
|
|
config CPU
|
|
|
|
|
int "CPU Core number."
|
|
|
|
|
default 1
|
2024-04-06 16:08:27 +00:00
|
|
|
config THREAD_MSG_BUG_LEN
|
2024-04-10 15:35:35 +08:00
|
|
|
int "thread msg buf size"
|
2024-04-06 16:08:27 +00:00
|
|
|
default 128
|
2024-04-10 15:35:35 +08:00
|
|
|
config THREAD_IPC_MSG_LEN
|
|
|
|
|
int "thread ipc msg max size"
|
|
|
|
|
default 96
|
|
|
|
|
config THREAD_MAP_BUF_LEN
|
|
|
|
|
int "thread ipc map buf max size."
|
|
|
|
|
default 16
|
2024-03-31 16:06:11 +00:00
|
|
|
config BUDDY_SLAB
|
|
|
|
|
bool "use BUDDY & SLAB"
|
|
|
|
|
default n
|
|
|
|
|
config THREAD_BLOCK_SIZE
|
|
|
|
|
hex "kthread block size"
|
|
|
|
|
default 0x400
|
2023-12-09 23:11:55 +08:00
|
|
|
config KNL_TEXT_ADDR
|
|
|
|
|
hex "The first address of the kernel text section"
|
|
|
|
|
default 0x8000000
|
|
|
|
|
|
|
|
|
|
config KNL_TEXT_SIZE
|
|
|
|
|
hex "Size of the kernel text segment."
|
|
|
|
|
default 0x100000
|
|
|
|
|
|
|
|
|
|
config KNL_DATA_ADDR
|
|
|
|
|
hex "knl data addr."
|
|
|
|
|
default 0x20000000
|
|
|
|
|
|
|
|
|
|
config KNL_DATA_SIZE
|
|
|
|
|
hex "knl data size."
|
|
|
|
|
default 0x2000000
|
|
|
|
|
config KNL_OFFSET
|
|
|
|
|
hex "knl set"
|
|
|
|
|
default 0x2000
|
|
|
|
|
|
|
|
|
|
config INIT_TASK_OFFSET
|
|
|
|
|
hex "init task offset"
|
|
|
|
|
default 0x10000
|
|
|
|
|
|
|
|
|
|
config BOOTFS_OFFSET
|
|
|
|
|
hex "bootfs offset"
|
|
|
|
|
default 0x20000
|
2024-01-20 21:20:45 +08:00
|
|
|
menuconfig KNL_EXRAM
|
|
|
|
|
bool "knl sram support"
|
|
|
|
|
default n
|
|
|
|
|
if KNL_EXRAM
|
|
|
|
|
config EX_RAM_ADDR
|
|
|
|
|
hex "sram start addr."
|
|
|
|
|
default 0x68000000
|
|
|
|
|
|
|
|
|
|
config EX_RAM_SIZE
|
|
|
|
|
hex "sram size"
|
|
|
|
|
default 0x100000
|
|
|
|
|
endif
|
2024-01-27 15:40:05 +08:00
|
|
|
menuconfig MK_MPU_CFG
|
2023-12-09 23:11:55 +08:00
|
|
|
bool "MKRTOS MPU config"
|
|
|
|
|
default y
|
2024-01-27 15:40:05 +08:00
|
|
|
if MK_MPU_CFG
|
|
|
|
|
config MPU_VERSION
|
|
|
|
|
int "mpu version"
|
|
|
|
|
default 1
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
2023-12-09 23:11:55 +08:00
|
|
|
|
2023-12-05 00:01:26 +08:00
|
|
|
config FT_ADDR_NR
|
|
|
|
|
int "The number of addresses supported by futex."
|
|
|
|
|
default 16
|
|
|
|
|
help
|
|
|
|
|
Set the number of supported futex, which usually indicates how many user state locks are supported..
|
|
|
|
|
config SYS_SCHE_HZ
|
|
|
|
|
int "System time slice size"
|
|
|
|
|
default 1000
|
|
|
|
|
help
|
|
|
|
|
Set the time slice size of the system.
|
|
|
|
|
|
|
|
|
|
config USER_ISR_START_NO
|
|
|
|
|
int "The starting point of the user mode interrupt number."
|
|
|
|
|
default 16
|
|
|
|
|
help
|
|
|
|
|
This number indicates which interrupt number can be used for user status.
|
|
|
|
|
config IRQ_REG_TAB_SIZE
|
|
|
|
|
int "The size of the interrupt registry in the kernel."
|
|
|
|
|
default 80
|
|
|
|
|
help
|
|
|
|
|
The interruption of user registration will temporarily use this table.
|
|
|
|
|
config REGION_NUM
|
|
|
|
|
int "Number of MPU regions"
|
|
|
|
|
default 8
|
|
|
|
|
help
|
|
|
|
|
Set the number of regions protected by MPU.
|
|
|
|
|
|
|
|
|
|
config OBJ_MAP_TAB_SIZE
|
|
|
|
|
int "The number of obj mapping tables."
|
|
|
|
|
default 4
|
|
|
|
|
help
|
|
|
|
|
OBJ_MAP_TAB_SIZE * OBJ_MAP_ENTRY_SIZE is equal to the number of kernel objects that a task can map.
|
|
|
|
|
config OBJ_MAP_ENTRY_SIZE
|
|
|
|
|
int "The size of the entries in the mapping table."
|
|
|
|
|
default 8
|
|
|
|
|
help
|
|
|
|
|
OBJ_MAP_TAB_SIZE * OBJ_MAP_ENTRY_SIZE is equal to the number of kernel objects that a task can map.
|
|
|
|
|
config PRINTK_CACHE_SIZE
|
|
|
|
|
int "The cache size of printk."
|
|
|
|
|
default 128
|
|
|
|
|
help
|
|
|
|
|
The printk cache size refers to the size of the data content output to the console in a single attempt, which usually does not need to be modified.
|
|
|
|
|
endmenu
|