MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / write_ram

Method write_ram

crates/virtual-machine/src/virtual_machine.rs:257–263  ·  view source on GitHub ↗

Write raw bytes into physical RAM at `addr`. Used to inject pre-compiled user binaries alongside a loaded kernel image. Flushes the L1/L2/L3 cache hierarchy afterward so subsequent CPU reads see the new data.

(&mut self, addr: u64, data: &[u8])

Source from the content-addressed store, hash-verified

255 }
256
257 // --- Bulk debug accessors ---
258
259 pub fn peek_all_xregs(&self) -> [u64; 32] {
260 self.cpu.peek_all_xregs()
261 }
262
263 pub fn peek_all_fregs(&self) -> [u64; 32] {
264 self.cpu.peek_all_fregs()
265 }
266

Callers 2

start_bootMethod · 0.80
setup_kernel_vmFunction · 0.80

Calls 2

cold_cache_resetMethod · 0.80
write_byteMethod · 0.45

Tested by

no test coverage detected