From 88cbdbe07635afb18e910fcb2be7edd20ac134ff Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 19 Dec 2025 15:56:19 +0800 Subject: [PATCH] cleanup a couple of remaining debug prints boot chain is closing in on feature-complete --- bao1x-boot/boot1/src/main.rs | 2 +- bao1x-boot/boot1/src/platform/bao1x/usb/glue.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bao1x-boot/boot1/src/main.rs b/bao1x-boot/boot1/src/main.rs index b2e1279b1..76e937fa2 100644 --- a/bao1x-boot/boot1/src/main.rs +++ b/bao1x-boot/boot1/src/main.rs @@ -80,7 +80,7 @@ pub unsafe extern "C" fn rust_entry() -> ! { let mut board_type = one_way.get_decoded::().expect("Board type coding error"); - crate::println_d!("TX_IDLE: {:?}", crate::platform::usb::TX_IDLE.load(Ordering::SeqCst)); + // crate::println_d!("TX_IDLE: {:?}", crate::platform::usb::TX_IDLE.load(Ordering::SeqCst)); let perclk: u32; (board_type, perclk) = crate::platform::early_init(board_type); // ensure we're running off the PLL diff --git a/bao1x-boot/boot1/src/platform/bao1x/usb/glue.rs b/bao1x-boot/boot1/src/platform/bao1x/usb/glue.rs index 31d86fa8f..9666a9e50 100644 --- a/bao1x-boot/boot1/src/platform/bao1x/usb/glue.rs +++ b/bao1x-boot/boot1/src/platform/bao1x/usb/glue.rs @@ -106,12 +106,14 @@ pub fn write_spim_page(addr: usize, data: Box<[u8; SPINOR_ERASE_SIZE as usize]>) } pub fn setup() -> (UsbDeviceState, u32) { + /* crate::println!( "RAM disk starts at {:x} and advertises {}kiB in length, but is actually {}kiB of storage", usb::RAMDISK_ADDRESS, usb::RAMDISK_LEN / 1024, usb::RAMDISK_ACTUAL_LEN / 1024, ); + */ // safety: this is safe because we're calling this before any access to `USB` static mut // state, and we also understand that the .data section doesn't exist in the loader and