summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorArseney300 <Arseney300@gmail.com>2026-03-29 02:07:17 +0700
committerArseney300 <Arseney300@gmail.com>2026-04-08 01:19:07 +0700
commit4912796d2e88c6eb5d02fbf0fb9c39f8c9f7cd4c (patch)
tree9ee8110e2c090c888f23797cda56c7e2df531695 /configs
bastion: initial implementation
ready project skeleton dual-arch build system with Linux-config style configuration UEFI EFI stub loader (PE32+) for x86_64 and AArch64 ELF64 kernel parser Temporary framebuffer console freestanding string and c++ abi stubs For now, kernel boots, prints banner, memory map and go halt
Diffstat (limited to 'configs')
-rw-r--r--configs/default_aarch6454
-rw-r--r--configs/default_x86_6457
2 files changed, 111 insertions, 0 deletions
diff --git a/configs/default_aarch64 b/configs/default_aarch64
new file mode 100644
index 0000000..9835e87
--- /dev/null
+++ b/configs/default_aarch64
@@ -0,0 +1,54 @@
+# ============================================================================
+# MyOS Kernel Configuration — AArch64 Default
+#
+# Copy to project root as .config and edit:
+# cp configs/default_aarch64 .config
+# vim .config
+# make (configure.py runs automatically)
+# ============================================================================
+
+# ── Basic ───────────────────────────────────────────────────────────────────
+KERNEL_VERSION="v0.0.1"
+KERNEL_FILE_NAME="kernel.elf"
+
+# ── Architecture ────────────────────────────────────────────────────────────
+# Set by the build system via ARCH= variable. Do not set here.
+AARCH64=y
+
+# ── Debugging ───────────────────────────────────────────────────────────────
+DEBUG_SERIAL=y
+DEBUG_VERBOSE_BOOT=y
+DEBUG_PAGE_ALLOC=n
+DEBUG_SCHEDULER=n
+DEBUG_SYSCALL_TRACE=n
+
+# ── Memory ──────────────────────────────────────────────────────────────────
+MAX_CPUS=4
+KERNEL_STACK_SIZE=16384
+PMM_TYPE=buddy
+HEAP_TYPE=slab
+
+# ── Drivers ─────────────────────────────────────────────────────────────────
+DRIVER_FBCON=y
+DRIVER_PL011_UART=y
+DRIVER_PS2KBD=n
+DRIVER_VIRTIO_BLK=y
+DRIVER_AHCI=n
+DRIVER_USB=n
+DRIVER_VIRTIO_NET=n
+
+# ── Filesystems ─────────────────────────────────────────────────────────────
+FS_INITRAMFS=y
+FS_TMPFS=y
+FS_EXT2=n
+FS_FAT32=n
+
+# ── Console ─────────────────────────────────────────────────────────────────
+FBCON_FG_COLOR=0x00CCCCCC
+FBCON_BG_COLOR=0x001A1A2E
+
+# ── Kernel features ────────────────────────────────────────────────────────
+FEATURE_SMP=n
+FEATURE_MODULES=n
+FEATURE_NETWORK=n
+FEATURE_POSIX_SIGNALS=n
diff --git a/configs/default_x86_64 b/configs/default_x86_64
new file mode 100644
index 0000000..9787046
--- /dev/null
+++ b/configs/default_x86_64
@@ -0,0 +1,57 @@
+# ============================================================================
+# MyOS Kernel Configuration — x86_64 Default
+#
+# Copy to project root as .config and edit:
+# cp configs/default_x86_64 .config
+# vim .config
+# make (configure.py runs automatically)
+#
+# Values: y = enabled, n = disabled, or a number/string
+# Lines starting with # are comments
+# ============================================================================
+
+# ── Basic ───────────────────────────────────────────────────────────────────
+KERNEL_VERSION="v0.0.1"
+KERNEL_FILE_NAME="kernel.elf"
+
+# ── Architecture ────────────────────────────────────────────────────────────
+# Set by the build system via ARCH= variable. Do not set here.
+X86=y
+
+# ── Debugging ───────────────────────────────────────────────────────────────
+DEBUG_SERIAL=y
+DEBUG_VERBOSE_BOOT=y
+DEBUG_PAGE_ALLOC=n
+DEBUG_SCHEDULER=n
+DEBUG_SYSCALL_TRACE=n
+
+# ── Memory ──────────────────────────────────────────────────────────────────
+MAX_CPUS=4
+KERNEL_STACK_SIZE=16384
+PMM_TYPE=buddy
+HEAP_TYPE=slab
+
+# ── Drivers ─────────────────────────────────────────────────────────────────
+DRIVER_FBCON=y
+DRIVER_UART_16550=y
+DRIVER_PS2KBD=y
+DRIVER_VIRTIO_BLK=y
+DRIVER_AHCI=n
+DRIVER_USB=n
+DRIVER_VIRTIO_NET=n
+
+# ── Filesystems ─────────────────────────────────────────────────────────────
+FS_INITRAMFS=y
+FS_TMPFS=y
+FS_EXT2=n
+FS_FAT32=n
+
+# ── Console ─────────────────────────────────────────────────────────────────
+FBCON_FG_COLOR=0x00CCCCCC
+FBCON_BG_COLOR=0x001A1A2E
+
+# ── Kernel features ────────────────────────────────────────────────────────
+FEATURE_SMP=n
+FEATURE_MODULES=n
+FEATURE_NETWORK=n
+FEATURE_POSIX_SIGNALS=n