]> Devi Nivas Git - cs3210-lab1.git/commit
test: store curproc at top of stack
authorrsc <rsc>
Thu, 27 Sep 2007 20:29:50 +0000 (20:29 +0000)
committerrsc <rsc>
Thu, 27 Sep 2007 20:29:50 +0000 (20:29 +0000)
commitce2e7515552adca3a60e349de2931112736d17bf
tree4398d7aee836b939db83afa1f0c9f8e6bb1afb1f
parentaefc13f8ba13475fa721d6da837db5e368ee1b0a
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.
main.c
proc.c
proc.h