summaryrefslogtreecommitdiff
path: root/na/kernel/boot_params.cc
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-07-10 11:24:56 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-07-10 11:24:56 +0800
commit1767d390fbf3d0c65389de46caf0b6d43ef3b6ad (patch)
tree0f5e01cd7c7a05abb6b1c7472d7f00f49caf02cc /na/kernel/boot_params.cc
parent63dc025705f6533b91fb1a7d26e6ed864efd9900 (diff)
downloadlume-1767d390fbf3d0c65389de46caf0b6d43ef3b6ad.tar.gz
lume-1767d390fbf3d0c65389de46caf0b6d43ef3b6ad.tar.xz
feat: establish bootable new architecture checkpoint
Replace the compressed boot path with a relocatable higher-half RISC-V entry, expand memory and SMP support, and add the driver, TTY, VFS, exec, signal, syscall, initramfs, and self-test infrastructure needed for a bootable kernel checkpoint.
Diffstat (limited to 'na/kernel/boot_params.cc')
-rw-r--r--na/kernel/boot_params.cc45
1 files changed, 0 insertions, 45 deletions
diff --git a/na/kernel/boot_params.cc b/na/kernel/boot_params.cc
deleted file mode 100644
index e5d4ee5..0000000
--- a/na/kernel/boot_params.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/* Copyright (C) 2026 Richard Qin */
-
-#include <lume/boot_params.h>
-
-static BootParams g_boot_params = {};
-
-static void boot_params_init_once()
-{
- if (g_boot_params.magic == kBootParamsMagic) {
- return;
- }
- g_boot_params = {};
- g_boot_params.magic = kBootParamsMagic;
- g_boot_params.version = kBootParamsVersion;
- g_boot_params.size = static_cast<uint32>(sizeof(BootParams));
-}
-
-void boot_params_init_fdt(uint64 fdt_paddr)
-{
- boot_params_init_once();
- g_boot_params.fdt_ptr = fdt_paddr;
- g_boot_params.seed_source = BOOT_SEED_NONE;
-}
-
-const BootParams* boot_params_get()
-{
- if (g_boot_params.magic != kBootParamsMagic) {
- return nullptr;
- }
- return &g_boot_params;
-}
-
-void boot_params_set_image_info(uint64 phys_base, uint64 image_size,
- uint64 reloc_offset, uint64 reloc_size,
- uint32 comp, uint32 image_flags)
-{
- boot_params_init_once();
- g_boot_params.kimage_phys_base = phys_base;
- g_boot_params.kimage_size = image_size;
- g_boot_params.kimage_reloc_offset = reloc_offset;
- g_boot_params.kimage_reloc_size = reloc_size;
- g_boot_params.kimage_comp = comp;
- g_boot_params.kimage_flags = image_flags;
-}