remove redundant comment bb
This commit is contained in:
parent
d1d1bd7fd7
commit
fa328add42
|
@ -25,7 +25,6 @@ pub static DISPLAY: Lazy<Mutex<Display>> = Lazy::new(|| {
|
||||||
|
|
||||||
let m = Mutex::new(Display {
|
let m = Mutex::new(Display {
|
||||||
fb: fb1.address.as_ptr().unwrap().cast(),
|
fb: fb1.address.as_ptr().unwrap().cast(),
|
||||||
// bb: fb1.address.as_ptr().unwrap().cast(),
|
|
||||||
bb: back_buffer.as_slice().as_ptr() as *mut u32,
|
bb: back_buffer.as_slice().as_ptr() as *mut u32,
|
||||||
size: Size::new(fb1.width as u32, fb1.height as u32),
|
size: Size::new(fb1.width as u32, fb1.height as u32),
|
||||||
color: Rgb888::WHITE,
|
color: Rgb888::WHITE,
|
||||||
|
|
|
@ -9,7 +9,7 @@ use {
|
||||||
},
|
},
|
||||||
Vm, VmRunError, VmRunOk,
|
Vm, VmRunError, VmRunOk,
|
||||||
},
|
},
|
||||||
log::{debug, info, trace, warn},
|
log::{debug, error, info, trace, warn},
|
||||||
};
|
};
|
||||||
|
|
||||||
const TIMER_QUOTIENT: usize = 100;
|
const TIMER_QUOTIENT: usize = 100;
|
||||||
|
@ -60,8 +60,8 @@ Register dump: {:?}",
|
||||||
let r254 = self.vm.registers[254];
|
let r254 = self.vm.registers[254];
|
||||||
let r253 = self.vm.registers[253];
|
let r253 = self.vm.registers[253];
|
||||||
|
|
||||||
log::debug!("Ecall number {:?}", r255);
|
debug!("Ecall number {:?}", r255);
|
||||||
log::trace!("Register dump: {:?}", self.vm.registers);
|
trace!("Register dump: {:?}", self.vm.registers);
|
||||||
|
|
||||||
match r255.cast::<u64>() {
|
match r255.cast::<u64>() {
|
||||||
0 => {
|
0 => {
|
||||||
|
@ -114,11 +114,16 @@ Register dump: {:?}",
|
||||||
let buffer_id = unsafe { r254.u64 };
|
let buffer_id = unsafe { r254.u64 };
|
||||||
let mem_addr = unsafe { r253.u64 };
|
let mem_addr = unsafe { r253.u64 };
|
||||||
let length = unsafe { r252.u64 as usize };
|
let length = unsafe { r252.u64 as usize };
|
||||||
trace!("{:?}", mem_addr);
|
trace!("IPC address: {:?}", mem_addr);
|
||||||
use alloc::vec::Vec;
|
use alloc::vec::Vec;
|
||||||
|
|
||||||
if buffer_id == 1 {
|
match buffer_id {
|
||||||
info!("Logging")
|
1 => {
|
||||||
|
error!("Logging via IPC isn't quite ready")
|
||||||
|
}
|
||||||
|
buffer_id => {
|
||||||
|
info!("Message has been sent to {}", buffer_id)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 4
|
// 4
|
||||||
|
|
Loading…
Reference in a new issue