From: Ben Gras Date: Fri, 21 Dec 2012 23:27:23 +0000 (+0000) Subject: kernel: vm kernel call can't suspend X-Git-Tag: v3.2.1~149 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.dnssec-checkds.html?a=commitdiff_plain;h=125fc7a918d5a4786fccfb3aaafc6d0df975819c;p=minix.git kernel: vm kernel call can't suspend --- diff --git a/kernel/arch/i386/memory.c b/kernel/arch/i386/memory.c index eb588d742..eb87a9d92 100644 --- a/kernel/arch/i386/memory.c +++ b/kernel/arch/i386/memory.c @@ -431,6 +431,8 @@ static void vm_suspend(struct proc *caller, const struct proc *target, RTS_SET(caller, RTS_VMREQUEST); + assert(caller->p_endpoint != VM_PROC_NR); + caller->p_vmrequest.req_type = VMPTYPE_CHECK; caller->p_vmrequest.target = target->p_endpoint; caller->p_vmrequest.params.check.start = linaddr;