]> Zhao Yanbai Git Server - minix.git/commitdiff
function to increase process stack (pointer). used by VM to set up large,
authorBen Gras <ben@minix3.org>
Thu, 11 Dec 2008 14:17:45 +0000 (14:17 +0000)
committerBen Gras <ben@minix3.org>
Thu, 11 Dec 2008 14:17:45 +0000 (14:17 +0000)
sparse, non-preallocated heap and stack.

kernel/arch/i386/arch_do_vmctl.c

index b82ce52a3a7c1ff3aeb7f1e6b2b8888beadd7dad..523165d82a19f4c43bde6b1b9808c89a19f68ebb 100644 (file)
@@ -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;