From 1767d390fbf3d0c65389de46caf0b6d43ef3b6ad Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Fri, 10 Jul 2026 11:24:56 +0800 Subject: 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. --- na/kernel/boot_params.cc | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 na/kernel/boot_params.cc (limited to 'na/kernel/boot_params.cc') 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 - -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(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; -} -- cgit v1.2.3