Skip to content
Snippets Groups Projects
  • rsc's avatar
    · ce2e7515
    rsc authored
    test: store curproc at top of stack
    
    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.63 KiB