mirror of
https://github.com/panpaul/tiny_os
synced 2024-09-20 09:45:19 +08:00
chore: make clippy happy
This commit is contained in:
parent
95dc7144c6
commit
93df10c5a2
@ -55,8 +55,8 @@ impl Iterator for crate::plat::backtrace::FrameWalker {
|
||||
return None;
|
||||
}
|
||||
|
||||
let prev_fp = unsafe { *(self.current_fp.as_const_ptr() as *const usize).offset(-2) };
|
||||
let prev_pc = unsafe { *(self.current_fp.as_const_ptr() as *const usize).offset(-1) };
|
||||
let prev_fp = unsafe { *self.current_fp.as_const_ptr::<usize>().offset(-2) };
|
||||
let prev_pc = unsafe { *self.current_fp.as_const_ptr::<usize>().offset(-1) };
|
||||
|
||||
self.current_fp = VirtAddr::from(prev_fp);
|
||||
self.current_pc = VirtAddr::from(prev_pc);
|
||||
|
@ -51,12 +51,6 @@ impl Arch {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn bits(&self) -> u32 {
|
||||
match self {
|
||||
Arch::RISCV64 => 64,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn board_arch_name(&self) -> String {
|
||||
"riscv".to_string()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user