diff --git a/executer/kernel/mcctrl/syscall.c b/executer/kernel/mcctrl/syscall.c index 2f38fc90..db40954a 100644 --- a/executer/kernel/mcctrl/syscall.c +++ b/executer/kernel/mcctrl/syscall.c @@ -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]; - } + *ret = req->args[1]; kfree(wqhln); syscall_ret = 0; diff --git a/kernel/syscall.c b/kernel/syscall.c index d8173bd7..fc210ea0 100644 --- a/kernel/syscall.c +++ b/kernel/syscall.c @@ -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 */