mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
return non-0 heap size in case of increaseheap of 0
this allows hosted mode to work, as it always reports a 0 heap size.
This commit is contained in:
parent
1121e268b8
commit
6793f9c5da
1 changed files with 5 additions and 1 deletions
|
|
@ -714,7 +714,11 @@ pub fn handle_inner(pid: PID, tid: TID, in_irq: bool, call: SysCall) -> SysCallR
|
|||
(process_inner.mem_heap_base, process_inner.mem_heap_size)
|
||||
});
|
||||
return Ok(xous_kernel::Result::MemoryRange(unsafe {
|
||||
MemoryRange::new(start, length).unwrap()
|
||||
MemoryRange::new(
|
||||
start,
|
||||
// 0-length MemoryRanges are disallowed -- so return 4096 as the minimum in any case, even though it's a lie
|
||||
if length == 0 { 4096 } else { length }
|
||||
).unwrap()
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue