From 252942ae0b7e63afe039e636082b4174bbe91aa6 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 20 Oct 2025 02:21:28 +0800 Subject: [PATCH] update baremetal APIs to track latest patches --- baremetal/Cargo.toml | 2 +- baremetal/src/repl.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/baremetal/Cargo.toml b/baremetal/Cargo.toml index ff9967e8b..1f4d0c855 100644 --- a/baremetal/Cargo.toml +++ b/baremetal/Cargo.toml @@ -43,7 +43,7 @@ bao1x = [ "utralib/bao1x", "linked_list_allocator", "bao1x-hal/loader-baosec", - # "bao1x-hal/debug-print-uart", + "bao1x-hal/debug-print-uart", "bao1x-api", "digest", "sha2-bao1x", diff --git a/baremetal/src/repl.rs b/baremetal/src/repl.rs index 6a5fb572f..68732a715 100644 --- a/baremetal/src/repl.rs +++ b/baremetal/src/repl.rs @@ -1013,11 +1013,11 @@ impl Repl { let slot_man = bao1x_hal::protected_rram::SlotManager::new(); crate::println!( "Slot 0(d): {:x?}", - slot_man.read(&bao1x_hal::protected_rram::SlotIndex::Data(0)) + slot_man.read(&bao1x_api::offsets::SlotIndex::Data(0, PartitionAccess::All)) ); crate::println!( "Slot 1(d): {:x?}", - slot_man.read(&bao1x_hal::protected_rram::SlotIndex::Data(1)) + slot_man.read(&bao1x_api::offsets::SlotIndex::Data(1, PartitionAccess::All)) ); } "echo" => {