mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
backout syscall patch
This commit is contained in:
parent
5e9af8821b
commit
6304ba4616
1 changed files with 1 additions and 5 deletions
|
|
@ -631,10 +631,6 @@ pub fn handle_inner(pid: PID, tid: TID, in_irq: bool, call: SysCall) -> SysCallR
|
|||
let virt_ptr = virt
|
||||
.map(|x| x.get() as *mut u8)
|
||||
.unwrap_or(core::ptr::null_mut());
|
||||
let mut req_flags = req_flags;
|
||||
if phys.is_none() {
|
||||
req_flags |= xous_kernel::MemoryFlags::X;
|
||||
}
|
||||
|
||||
// Don't let the address exceed the user area (unless it's PID 1)
|
||||
if pid.get() != 1
|
||||
|
|
@ -725,7 +721,7 @@ pub fn handle_inner(pid: PID, tid: TID, in_irq: bool, call: SysCall) -> SysCallR
|
|||
};
|
||||
MemoryManager::with_mut(|mm| {
|
||||
Ok(xous_kernel::Result::MemoryRange(
|
||||
mm.reserve_range(start, delta, flags | xous_kernel::MemoryFlags::X)?,
|
||||
mm.reserve_range(start, delta, flags)?,
|
||||
))
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue