xous: remove hardcoded addresses from create_process_pre

These addresses were hardcoded, even after they became available from
the process args.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2022-05-30 11:27:17 +08:00
parent 93b6d9f2c5
commit 1d3cf25518

View file

@ -159,9 +159,9 @@ pub fn create_process_pre(args: &ProcessArgs) -> core::result::Result<ProcessIni
// 2,3 -- Text Start, Text Size
text: spawn_memory,
// 4 -- Text destination address
text_destination: crate::MemoryAddress::new(0x2050_1000).unwrap(),
text_destination: args.load_address,
// 5 -- Entrypoint
start: crate::MemoryAddress::new(0x2050_1000).unwrap(),
start: args.entrypoint,
})
}