temporary fix for bug #889

This commit is contained in:
Tomoki Shirasawa
2017-07-04 12:04:37 +09:00
parent 67843151d3
commit 0061adadfb
2 changed files with 4 additions and 5 deletions

View File

@ -211,8 +211,7 @@ long do_syscall(struct syscall_request *req, int cpu, int pid)
send_syscall(req, cpu, pid, &res);
if (req->rtid == -1) {
rc = 0;
goto out;
preempt_disable();
}
dkprintf("%s: syscall num: %d waiting for Linux.. \n",
@ -363,6 +362,9 @@ long do_syscall(struct syscall_request *req, int cpu, int pid)
send_syscall(&req2, cpu, pid, &res);
}
}
if (req->rtid == -1) {
preempt_enable();
}
dkprintf("%s: syscall num: %d got host reply: %d \n",
__FUNCTION__, req->number, res.ret);