Remove consts.rs and just use plain types

This commit is contained in:
2025-12-28 12:01:39 +01:00
parent 8024af6b13
commit 9a9bef7dd7
13 changed files with 117 additions and 148 deletions

View File

@@ -14,9 +14,9 @@ use goblin::{
program_header::PT_LOAD,
},
};
use trve::{consts::Addr, mem::RAM_START};
use trve::mem::RAM_START;
pub fn load<P: AsRef<Path>>(path: P, ram: &mut [u8]) -> Result<Addr> {
pub fn load<P: AsRef<Path>>(path: P, ram: &mut [u8]) -> Result<u64> {
let buf = fs::read(path)?;
match Object::parse(&buf)? {