Skip to content
Snippets Groups Projects
  1. Aug 17, 2011
  2. Aug 09, 2011
  3. Jul 29, 2011
  4. Feb 19, 2011
  5. 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
  6. Sep 29, 2010
  7. Sep 27, 2010
  8. Sep 19, 2010
  9. Sep 02, 2010
  10. Sep 01, 2010
  11. Aug 31, 2010
  12. Aug 06, 2010
  13. Jul 23, 2010
  14. Jul 02, 2010
  15. 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
  16. Aug 08, 2009
  17. Jul 13, 2009
  18. May 30, 2009
    • rsc's avatar
      exec sanity check · 90bab908
      rsc authored
      90bab908
    • 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
  19. Aug 30, 2007
  20. Aug 27, 2007
    • rsc's avatar
      oops · c1bfbfa2
      rsc authored
      c1bfbfa2
    • rsc's avatar
      delete unnecessary #include lines · 558ab49f
      rsc authored
      558ab49f
    • rsc's avatar
      · 629c1fe7
      rsc authored
      Edit exec.
      
      Do not commit to new memory image until
      nothing can go wrong, avoiding bad2 case.
      
      Be sure to allocate enough stack space for argv.
      
      Load executable before initializing stack, to
      keep ELF loops together.
      
      Make argv loop clearer.
      629c1fe7
  21. Aug 24, 2007
    • rsc's avatar
      · 07090dd7
      rsc authored
      Remove struct uinode.
      Remove type arg to mknod (assume T_DEV).
      07090dd7
  22. 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
      · 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
Loading