print trng status on bringup boot

This commit is contained in:
bunnie 2024-01-20 16:17:02 +08:00
parent 75217075c1
commit 47dbecfd0b

View file

@ -140,6 +140,8 @@ pub fn early_init() {
for _ in 0..8 {
crate::println!("trng raw: {:x}", trng.get_u32().unwrap_or(0xDEAD_BEEF));
}
let trng_csr = CSR::new(HW_TRNG_BASE as *mut u32);
crate::println!("trng status: {:x}", trng_csr.r(utra::trng::SFR_SR));
let rx_buf = unsafe {
// safety: it's safe only because we are manually tracking the allocations in IFRAM0. Yuck!