diff options
| author | taitep <taitep@taitep.se> | 2025-12-28 12:01:39 +0100 |
|---|---|---|
| committer | taitep <taitep@taitep.se> | 2025-12-28 12:01:39 +0100 |
| commit | 9a9bef7dd7dce7d5c10b7cf49a42478ad85829ac (patch) | |
| tree | ea832693678899e97aecf12bd620f0123b6ce3d2 /src/execload.rs | |
| parent | 8024af6b1348b5f47fabe5a1949de54607a33888 (diff) | |
Remove consts.rs and just use plain types
Diffstat (limited to 'src/execload.rs')
| -rw-r--r-- | src/execload.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/execload.rs b/src/execload.rs index 6caa797..2b46599 100644 --- a/src/execload.rs +++ b/src/execload.rs @@ -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)? { |
