Remove consts.rs and just use plain types
This commit is contained in:
@@ -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)? {
|
||||
|
||||
Reference in New Issue
Block a user