refactor(init): replace raw usize with CapSlot, StorageHandle, PhysicalAddress newtypes throughout supervisor and boot

This commit is contained in:
2026-10-18 03:54:07 +02:00
parent 0a2e01bec9
commit f72a434e1a
4 changed files with 63 additions and 53 deletions

View File

@@ -17,7 +17,7 @@ pub enum EndpointBinding {
#[derive(Debug, Clone, Copy)]
pub enum BinarySource {
Ram { addr: usize, len: usize },
Ram { base: PhysicalAddress, size: usize },
Storage { path: &'static str },
}
@@ -74,7 +74,10 @@ pub static SNAKE_MANIFEST: BootManifest = BootManifest {
hardware_caps: &[],
endpoints: &[EndpointBinding::Own { name: "storage" }],
restartable: true,
binary: BinarySource::Ram { addr: 0, len: 0 },
binary: BinarySource::Ram {
base: PhysicalAddress::from_raw(0),
size: 0,
},
},
ServerEntry {
name: "display",