uti: Streamline syscall_backward()

This commit is contained in:
Masamichi Takagi
2018-09-04 18:00:59 +09:00
parent 4b3e58fd3d
commit 439dc0928b
2 changed files with 1 additions and 15 deletions

View File

@ -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;

View File

@ -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 */