update baremetal APIs to track latest patches

This commit is contained in:
bunnie 2025-10-20 02:21:28 +08:00
parent 1d5cc0806b
commit 252942ae0b
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -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",

View file

@ -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" => {