Skip to content
Snippets Groups Projects
  1. Sep 02, 2010
  2. Aug 31, 2010
  3. Aug 10, 2010
  4. Aug 06, 2010
  5. Aug 05, 2010
  6. Jul 25, 2010
  7. Jul 23, 2010
  8. Jul 02, 2010
  9. Sep 20, 2009
  10. Sep 03, 2009
  11. Sep 02, 2009
  12. Aug 30, 2009
    • Russ Cox's avatar
      assorted fixes: · 48755214
      Russ Cox authored
       * rename c/cp to cpu/proc
       * rename cpu.context to cpu.scheduler
       * fix some comments
       * formatting for printout
      48755214
  13. Aug 08, 2009
  14. Jul 12, 2009
  15. Jul 11, 2009
  16. May 30, 2009
    • rsc's avatar
      compile fixes · 27ff8f0e
      rsc authored
      27ff8f0e
    • rsc's avatar
      · 34295f46
      rsc authored
      group locks into structs they protect.
      few naming nits.
      34295f46
    • rsc's avatar
      clean up %fs %gs use · 7b644318
      rsc authored
      7b644318
    • rsc's avatar
      move fork into proc.c · 21573833
      rsc authored
      21573833
    • rsc's avatar
      · 19333efb
      rsc authored
      Some proc cleanup, moving some of copyproc into allocproc.
      
      Also, an experiment: use "thread-local" storage for c and cp
      instead of the #define macro for curproc[cpu()].
      19333efb
  17. Mar 08, 2009
  18. Oct 14, 2008
  19. Sep 11, 2008
  20. Aug 28, 2008
  21. Aug 27, 2008
  22. Oct 20, 2007
  23. Sep 27, 2007
    • rsc's avatar
      · ab08960f
      rsc authored
      Final word on the locking fiasco?
      
      Change pushcli / popcli so that they can never turn on
      interrupts unexpectedly.  That is, if interrupts are on,
      then pushcli(); popcli(); turns them off and back on, but
      if they are off to begin with, then pushcli(); popcli(); is
      a no-op.
      
      I think our fundamental mistake was having a primitive
      (release and then popcli nee spllo) that could turn
      interrupts on at unexpected moments instead of being
      explicit about when we want to start allowing interrupts.
      
      With the new semantics, all the manual fiddling of ncli
      to force interrupts off in certain sections goes away.
      In return, we must explicitly mark the places where
      we want to enable interrupts unconditionally, by calling sti().
      There is only one: inside the scheduler loop.
      ab08960f
    • rsc's avatar
      yank out stack overflow checking ugliness · c95bde81
      rsc authored
      c95bde81
    • rsc's avatar
      okay, that was long enough - revert · 4f74de0e
      rsc authored
      4f74de0e
    • 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
    • rsc's avatar
      rename splhi/spllo to pushcli/popcli · 3807c1f2
      rsc authored
      3807c1f2
Loading