diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-07-10 11:24:56 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-07-10 11:24:56 +0800 |
| commit | 1767d390fbf3d0c65389de46caf0b6d43ef3b6ad (patch) | |
| tree | 0f5e01cd7c7a05abb6b1c7472d7f00f49caf02cc /na/drivers/driver.cc | |
| parent | 63dc025705f6533b91fb1a7d26e6ed864efd9900 (diff) | |
| download | lume-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/drivers/driver.cc')
| -rw-r--r-- | na/drivers/driver.cc | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/na/drivers/driver.cc b/na/drivers/driver.cc deleted file mode 100644 index 5810645..0000000 --- a/na/drivers/driver.cc +++ /dev/null @@ -1,27 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* Copyright (C) 2026 Richard Qin */ - -#include <lume/driver.h> -#include <lume/fdt.h> -#include <lume/kprintf.h> - -extern "C" { - extern DriverEntry __drivers_start[]; - extern DriverEntry __drivers_end[]; -} - -void driver_probe_all() { - DeviceNode* root = fdt_get_node_by_path("/"); - if (!root) { - kprintf("[driver] WARN: No FDT root found\n"); - return; - } - - for (DriverEntry* drv = __drivers_start; drv < __drivers_end; ++drv) { - DeviceNode* node = fdt_find_compatible(drv->compatible); - if (node) { - kprintf("[driver] Probing %s\n", drv->compatible); - drv->probe(node); - } - } -} |
