uti: Streamline syscall_backward()
This commit is contained in:
@ -446,20 +446,8 @@ retry_alloc:
|
||||
syscall_ret = -EIO;
|
||||
goto out;
|
||||
}
|
||||
#define PAGER_REQ_RESUME 0x0101
|
||||
else if (req->args[0] != PAGER_REQ_RESUME) {
|
||||
resp->ret = pager_call(usrdata->os, (void *)req);
|
||||
|
||||
if (__notify_syscall_requester(usrdata->os, packet, resp) < 0) {
|
||||
printk("%s: WARNING: failed to notify PID %d\n",
|
||||
__FUNCTION__, packet->pid);
|
||||
}
|
||||
|
||||
mb();
|
||||
}
|
||||
else {
|
||||
*ret = req->args[1];
|
||||
}
|
||||
|
||||
kfree(wqhln);
|
||||
syscall_ret = 0;
|
||||
|
||||
@ -456,8 +456,6 @@ long do_syscall(struct syscall_request *req, int cpu, int pid)
|
||||
|
||||
/* send result */
|
||||
req2.number = __NR_mmap;
|
||||
#define PAGER_RESUME_PAGE_FAULT 0x0101
|
||||
req2.args[0] = PAGER_RESUME_PAGE_FAULT;
|
||||
req2.args[1] = syscall_ret;
|
||||
/* The current thread is the requester and only the waiting thread
|
||||
* may serve the request */
|
||||
|
||||
Reference in New Issue
Block a user