From 125fc7a918d5a4786fccfb3aaafc6d0df975819c Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 21 Dec 2012 23:27:23 +0000 Subject: [PATCH] kernel: vm kernel call can't suspend --- kernel/arch/i386/memory.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.44.0