squashfs fragment support + bug fixes

This commit is contained in:
Zoe
2023-12-20 01:50:17 -06:00
parent f03d29d1fa
commit 361cfc49fe
9 changed files with 150 additions and 74 deletions

View File

@@ -1,6 +1,6 @@
use alloc::{borrow::ToOwned, string::String, vec::Vec};
use alloc::{borrow::ToOwned, format, string::String, vec::Vec};
use crate::drivers::fs::vfs::VfsFileSystem;
use crate::drivers::{fs::vfs::VfsFileSystem, serial::write_serial};
#[repr(C)]
#[derive(Clone, Copy, Debug)]
@@ -20,8 +20,6 @@ pub fn print_stack_trace(max_frames: usize, rbp: u64) {
let instruction_pointer = unsafe { (*stackframe).rip };
crate::print!(" {:#X} ", instruction_pointer);
let instrcution_info = get_function_name(instruction_pointer);
if let Ok((function_name, function_offset)) = instrcution_info {