From: Ben Gras Date: Thu, 11 Dec 2008 14:17:45 +0000 (+0000) Subject: function to increase process stack (pointer). used by VM to set up large, X-Git-Tag: v3.1.4~207 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/verify-sign/verify.pl?a=commitdiff_plain;h=66b161238d19aaddaf2ef4acb60aadaab8339fb6;p=minix.git function to increase process stack (pointer). used by VM to set up large, sparse, non-preallocated heap and stack. --- diff --git a/kernel/arch/i386/arch_do_vmctl.c b/kernel/arch/i386/arch_do_vmctl.c index b82ce52a3..523165d82 100644 --- a/kernel/arch/i386/arch_do_vmctl.c +++ b/kernel/arch/i386/arch_do_vmctl.c @@ -35,6 +35,10 @@ struct proc *p; } RTS_LOCK_UNSET(p, VMINHIBIT); return OK; + case VMCTL_INCSP: + /* Increase process SP. */ + p->p_reg.sp += m_ptr->SVMCTL_VALUE; + return OK; case VMCTL_GET_PAGEFAULT: { struct proc *rp;