Skip to content
Snippets Groups Projects
  1. Aug 26, 2011
  2. Aug 15, 2011
  3. Aug 12, 2011
    • Robert Morris's avatar
      log write() data · 2e590463
      Robert Morris authored
      usertest for big write()s
      push begin_trans/commit_trans down into syscalls
      2e590463
  4. Jan 11, 2011
    • Russ Cox's avatar
      make new code like old code · 1a81e38b
      Russ Cox authored
      Variable declarations at top of function,
      separate from initialization.
      
      Use == 0 instead of ! for checking pointers.
      
      Consistent spacing around {, *, casts.
      
      Declare 0-parameter functions as (void) not ().
      
      Integer valued functions return -1 on failure, 0 on success.
      1a81e38b
  5. Sep 27, 2010
  6. Jul 02, 2010
  7. 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
  8. Aug 08, 2009
  9. Jul 11, 2009
  10. May 30, 2009
  11. Oct 17, 2008
  12. Oct 16, 2008
  13. 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
  14. Aug 28, 2007
  15. Aug 27, 2007
  16. Aug 24, 2007
  17. Aug 21, 2007
    • rsc's avatar
      · eaea18cb
      rsc authored
      PDF at http://am.lcs.mit.edu/~rsc/xv6.pdf
      
      Various changes made while offline.
      
       + bwrite sector argument is redundant; use b->sector.
       + reformatting of files for nicer PDF page breaks
       + distinguish between locked, unlocked inodes in type signatures
       + change FD_FILE to FD_INODE
       + move userinit (nee proc0init) to proc.c
       + move ROOTDEV to param.h
       + always parenthesize sizeof argument
      eaea18cb
    • rsc's avatar
      ARGMAX -> MAXARGS · bd39955e
      rsc authored
      bd39955e
    • rsc's avatar
      · f32f3638
      rsc authored
      Various cleanup:
      
       - Got rid of dummy proc[0].  Now proc[0] is init.
       - Added initcode.S to exec /init, so that /init is
         just a regular binary.
       - Moved exec out of sysfile to exec.c
       - Moved code dealing with fs guts (like struct inode)
         from sysfile.c to fs.c.  Code dealing with system call
         arguments stays in sysfile.c
       - Refactored directory routines in fs.c; should be simpler.
       - Changed iget to return *unlocked* inode structure.
         This solves the lookup-then-use race in namei
         without introducing deadlocks.
         It also enabled getting rid of the dummy proc[0].
      f32f3638
  18. Aug 20, 2007
  19. Aug 10, 2007
  20. Aug 09, 2007
  21. Aug 08, 2007
  22. Sep 07, 2006
  23. Sep 06, 2006
Loading