diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-05-03 01:44:31 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-05-03 01:44:31 +0800 |
| commit | 4b1b9912caf41fa52818e5d84130016ce00888cc (patch) | |
| tree | d354df0ee842e51ddfd97fc31c46739dc6edff95 /na/arch | |
| parent | 781c48e143ceef05ced5b3f4c9689c209ddf18ee (diff) | |
| download | lume-4b1b9912caf41fa52818e5d84130016ce00888cc.tar.gz lume-4b1b9912caf41fa52818e5d84130016ce00888cc.tar.xz | |
feat: add Kconfig infrastructure for kernel configuration management
Diffstat (limited to 'na/arch')
| -rw-r--r-- | na/arch/riscv/defconfig | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/na/arch/riscv/defconfig b/na/arch/riscv/defconfig new file mode 100644 index 0000000..87d3ffd --- /dev/null +++ b/na/arch/riscv/defconfig @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (C) 2026 Richard Qin +# +# LumeOS Default Kernel Configuration — RISC-V (virt) +# +# This is the "golden" default configuration for the RISC-V virt platform. +# To customise, copy this file to the source root as '.config': +# +# cp arch/riscv/defconfig .config +# $EDITOR .config +# make +# +# Any variable not set here inherits its default from scripts/Kconfig.mk. +# ====================================================================== + +# --- Platform ----------------------------------------------------------- +CONFIG_ARCH = riscv + +# --- CPU / SMP ---------------------------------------------------------- +CONFIG_NR_CPUS = 8 + +# --- Scheduler ---------------------------------------------------------- +CONFIG_HZ = 100 +CONFIG_NR_PRIORITIES = 32 + +# --- Memory Management -------------------------------------------------- +CONFIG_PAGE_SIZE = 4096 +CONFIG_MAX_ORDER = 11 +CONFIG_KERNEL_STACK_SIZE = 8192 + +# --- Security / Hardening ----------------------------------------------- +CONFIG_KASLR = y +CONFIG_STACK_CANARY = y + +# --- Debug --------------------------------------------------------------- +CONFIG_DEBUG = y +CONFIG_DEBUG_LOCKS = y +CONFIG_SELFTEST = y +CONFIG_KLOG = y |
