• rsc's avatar
    test: store curproc at top of stack · ce2e7515
    rsc 提交于
    I don't actually think this is worthwhile, but I figured
    I would check it in before reverting it, so that it can
    be in the revision history.
    
    Pros:
      * curproc doesn't need to turn on/off interrupts
      * scheduler doesn't have to edit curproc anymore
    
    Cons:
      * it's ugly
      * all the stack computation is more complicated.
      * it doesn't actually simplify anything but curproc,
        and even curproc is harder to follow.
    ce2e7515
proc.c 10.6 KB