Skip to content
Snippets Groups Projects
  1. Sep 27, 2007
  2. Sep 26, 2007
    • rsc's avatar
      believe it or not, this was working · 666f58c7
      rsc authored
      the macro expansion of "char *cp;" turned into
      char *(curproc[cpu()]);  which declares a dynamically
      sized array of char* called curproc.
      
      so then &cp == &(curproc[cpu()]) was actually a
      stack variable as "expected".  it was one past the
      end of the array, but the implicit alloca allocated
      more than was necessary.
      
      do not tell me that making cp a #define was a bad idea.
      there are worse problems to fix.  more on that later.
      666f58c7
    • rsc's avatar
      debugging prints · 56c1a151
      rsc authored
      56c1a151
  3. Aug 24, 2007
  4. Aug 21, 2007
  5. Aug 20, 2007
  6. Aug 10, 2007
  7. Aug 08, 2007
  8. Sep 07, 2006
  9. Sep 06, 2006
  10. Aug 29, 2006
  11. Aug 24, 2006
  12. Aug 19, 2006
    • kaashoek's avatar
      chdir · 8787cd01
      kaashoek authored
      cd in shell
      nits in mkdir, ls, etc.
      8787cd01
  13. Aug 15, 2006
    • rtm's avatar
      no more proc[] entry per cpu for idle loop · 350e63f7
      rtm authored
      each cpu[] has its own gdt and tss
      no per-proc gdt or tss, re-write cpu's in scheduler (you win, cliff)
      main0() switches to cpu[0].mpstack
      350e63f7
  14. Aug 13, 2006
    • rtm's avatar
      namei returns locked parent dir inode for create / unlink · 211ff0c6
      rtm authored
      don't hold fd table lock across idecref() (latter does block i/o)
      idecref calls iput() in case last ref -> freeing inode
      dir size is 512 * # blocks, so readi/writei &c work
      unlink deletes dirent even if ip->nlink > 0
      211ff0c6
  15. Aug 12, 2006
  16. Jul 28, 2006
  17. Jul 16, 2006
    • rsc's avatar
      nitpicks · c54c7926
      rsc authored
      c54c7926
    • rsc's avatar
      · 9b37d1bf
      rsc authored
      Add user.h for prototypes.
      Add cons_puts for cleaner output.
      9b37d1bf
  18. Jul 15, 2006
    • rtm's avatar
      no more recursive locks · 46bbd72f
      rtm authored
      wakeup1() assumes you hold proc_table_lock
      sleep(chan, lock) provides atomic sleep-and-release to wait for condition
      ugly code in swtch/scheduler to implement new sleep
      fix lots of bugs in pipes, wait, and exit
      fix bugs if timer interrupt goes off in schedule()
      console locks per line, not per byte
      46bbd72f
  19. Jul 12, 2006
    • rtm's avatar
      passes both usertests · 6eb6f10c
      rtm authored
      exit had acquire where I meant release
      swtch now checks that you hold no locks
      6eb6f10c
    • rtm's avatar
      cvs add spinlock.h · 66432474
      rtm authored
      fix race in schedule()
      66432474
  20. Jul 11, 2006
  21. Jul 01, 2006
    • rtm's avatar
      swtch saves callee-saved registers · 8b4e2a08
      rtm authored
      swtch idles on per-CPU stack, not on calling process's stack
      fix pipe bugs
      usertest.c tests pipes, fork, exit, close
      8b4e2a08
Loading