mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
kernel: mem: increase default mem size
The default mem size got shrunk down to 4 MB earlier, but there is a lingering issue that prevents specifying virtual addresses. As a result, pddb and others don't work. Temporarily revert this change. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
5dbad15744
commit
bdad4f9204
1 changed files with 2 additions and 2 deletions
|
|
@ -312,7 +312,7 @@ impl MemoryManager {
|
|||
kind: xous_kernel::MemoryType,
|
||||
) -> Result<*mut u8, xous_kernel::Error> {
|
||||
// If we were supplied a perfectly good address, return that.
|
||||
if virt_ptr as usize != 0 {
|
||||
if !virt_ptr.is_null() {
|
||||
return Ok(virt_ptr);
|
||||
}
|
||||
|
||||
|
|
@ -330,7 +330,7 @@ impl MemoryManager {
|
|||
}
|
||||
xous_kernel::MemoryType::Default => (
|
||||
process_inner.mem_default_base,
|
||||
process_inner.mem_default_base + 0x40_0000, // Limit to one superpage
|
||||
process_inner.mem_default_base + 0x1000_0000,
|
||||
process_inner.mem_default_last,
|
||||
),
|
||||
xous_kernel::MemoryType::Messages => (
|
||||
|
|
|
|||
Loading…
Reference in a new issue