mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix debug statements
This commit is contained in:
parent
5113df5eec
commit
e04a2e4ce0
1 changed files with 7 additions and 7 deletions
|
|
@ -957,7 +957,7 @@ impl<'a> RootKeys {
|
|||
// dump the keystore -- used to confirm that patching worked right. does not get compiled in when hazardous-debug is not enable.
|
||||
for addr in 0..256 {
|
||||
self.keyrom.wfo(utra::keyrom::ADDRESS_ADDRESS, addr);
|
||||
self.sensitive_data.borrow_mut().as_slice::<u32>()[addr as usize] = self.keyrom.rf(utra::keyrom::DATA_DATA);
|
||||
self.sensitive_data.borrow_mut().as_slice_mut::<u32>()[addr as usize] = self.keyrom.rf(utra::keyrom::DATA_DATA);
|
||||
log::info!("{:02x}: 0x{:08x}", addr, self.sensitive_data.borrow_mut().as_slice::<u32>()[addr as usize]);
|
||||
}
|
||||
}
|
||||
|
|
@ -969,7 +969,7 @@ impl<'a> RootKeys {
|
|||
// setup the local cache
|
||||
for addr in 0..256 {
|
||||
self.keyrom.wfo(utra::keyrom::ADDRESS_ADDRESS, addr);
|
||||
self.sensitive_data.borrow_mut().as_slice::<u32>()[addr as usize] = self.keyrom.rf(utra::keyrom::DATA_DATA);
|
||||
self.sensitive_data.borrow_mut().as_slice_mut::<u32>()[addr as usize] = self.keyrom.rf(utra::keyrom::DATA_DATA);
|
||||
log::info!("{:02x}: 0x{:08x}", addr, self.sensitive_data.borrow_mut().as_slice::<u32>()[addr as usize]);
|
||||
}
|
||||
|
||||
|
|
@ -980,11 +980,11 @@ impl<'a> RootKeys {
|
|||
}
|
||||
}
|
||||
pcache.fpga_key_valid = 1;
|
||||
self.sensitive_data.borrow_mut().as_slice::<u32>()[KeyRomLocs::CONFIG as usize] |= keyrom_config::INITIALIZED.ms(1);
|
||||
self.sensitive_data.borrow_mut().as_slice::<u32>()[0x30] = 0xc0de_600d;
|
||||
self.sensitive_data.borrow_mut().as_slice::<u32>()[0x31] = 0x1234_5678;
|
||||
self.sensitive_data.borrow_mut().as_slice::<u32>()[0x32] = 0x8000_0000;
|
||||
self.sensitive_data.borrow_mut().as_slice::<u32>()[0x33] = 0x5555_3333;
|
||||
self.sensitive_data.borrow_mut().as_slice_mut::<u32>()[KeyRomLocs::CONFIG as usize] |= keyrom_config::INITIALIZED.ms(1);
|
||||
self.sensitive_data.borrow_mut().as_slice_mut::<u32>()[0x30] = 0xc0de_600d;
|
||||
self.sensitive_data.borrow_mut().as_slice_mut::<u32>()[0x31] = 0x1234_5678;
|
||||
self.sensitive_data.borrow_mut().as_slice_mut::<u32>()[0x32] = 0x8000_0000;
|
||||
self.sensitive_data.borrow_mut().as_slice_mut::<u32>()[0x33] = 0x5555_3333;
|
||||
|
||||
// one time only
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue