Refactor drivers

This commit is contained in:
Yuke Peng
2023-11-20 20:37:51 +08:00
committed by Tate, Hongliang Tian
parent d809eca81d
commit edd808bd3d
12 changed files with 87 additions and 67 deletions

View File

@ -53,7 +53,9 @@ fn print_stack_trace() {
let fde_initial_address = _Unwind_FindEnclosingFunction(pc as *mut c_void) as usize;
early_println!(
"{:4}: fn {:#18x} - pc {:#18x} / registers:",
data.counter, fde_initial_address, pc,
data.counter,
fde_initial_address,
pc,
);
// Print the first 8 general registers for any architecture. The register number follows
// the DWARF standard.