use alloc::{string::String, vec::Vec}; use genfs::{Fs, OpenOptions}; use crate::{filesystem::FILE_SYSTEM, wasm_jumploader::interp}; /// Experimental scratchpad for testing. pub fn scratchpad() { let fs = &*FILE_SYSTEM.lock(); let file = fs .open(b"/home/able/kernel.md", OpenOptions::new().read(true)) .unwrap(); let mut file_bytes = Vec::new(); file.read_to_end(&mut file_bytes).unwrap(); let string = String::from_utf8_lossy(&file_bytes); print!("{}", string); let pci_list = tinypci::brute_force_scan(); for pci in pci_list { info!("{}", pci); } interp(); }