summaryrefslogtreecommitdiff
path: root/proc.c
AgeCommit message (Collapse)Author
2007-08-21Various cleanup:rsc
- 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].
2007-08-20checkpoint - simpler namei interfacersc
2007-08-14nitrsc
2007-08-14Because limit gives the address of the last addressablersc
byte in the segment, the limit argument to SEG16 and SEG needs to have 1 subtracted from it.
2007-08-10Make cp a magic symbol.rsc
2007-08-09try to use cp only for curproc[cpu()]rsc
2007-08-08check p->killed for long-lived sleepsrsc
2007-08-08cleaner tablersc
2007-08-08cleaner tablersc
2007-08-08iincref returns new refrsc
2007-08-08add DPL_USER constantrsc
2007-08-08fix various bugsrsc
2007-08-08comment tweaks; more informative process listrsc
2006-09-08move growproc up higherrsc
2006-09-08fix various commentsrsc
2006-09-07check preconditions in schedrsc
2006-09-07debugging printsrsc
2006-09-07more commentsrsc
2006-09-07more defensive programmingrsc
2006-09-06fd_* => file_*rsc
2006-09-06fd.* -> file.*rsc
2006-09-06struct fd -> struct filersc
2006-09-06no /* */ commentsrsc
2006-09-06standardize various * conventionsrsc
2006-09-06clear np->mem after freeingrsc
2006-09-06some pipe support in shkaashoek
bug in proc_wait
2006-08-30complain if no disk 1rtm
lots of cleanup
2006-08-29nitsrtm
2006-08-29clear killed flag in exitrtm
idecref cwd in exit
2006-08-29prune unneeded panics and debug outputrtm
2006-08-29i broke sbrk, fix itrtm
2006-08-29clean up stale error checks and panicsrtm
delete unused functions a few comments
2006-08-24bug in sbrkkaashoek
test malloc
2006-08-24user-level malloc (untested)kaashoek
nit in sbrk indirect block fix dup to share fd struct
2006-08-23i/o redirection in shkaashoek
better parsing of sh commands (copied from jos sh) cat: read from 1 if no args sbrk system call, but untested getpid system call moved locks in keyboard intr, but why do we get intr w. null characters from keyboard?
2006-08-19chdirkaashoek
cd in shell nits in mkdir, ls, etc.
2006-08-15no more proc[] entry per cpu for idle looprtm
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
2006-08-15commented out code for cwdkaashoek
2006-08-13link()rtm
2006-08-10interrupts could be recursive since lapic_eoi() called before rtirtm
so fast interrupts overflow the kernel stack fix: cli() before lapic_eoi()
2006-08-08fix race in holding() check in acquire()rtm
give cpu1 a TSS and gdt for when it enters scheduler() and a pseudo proc[] entry for each cpu cpu0 waits for each other cpu to start up read() for files
2006-07-29open()rtm
2006-07-27primitive execrtm
2006-07-18prevent longjmp / forkret from writing over tf->edirtm
2006-07-17add ide_lock for sleeprsc
2006-07-17standarize on unix-like lowercase struct namesrsc
2006-07-17add uint and standardize on typedefs instead of unsignedrsc
2006-07-17goodbye PushRegsrsc
2006-07-17nitpicksrsc
2006-07-16Eliminate annoying Pseudodesc structure.rsc
Eliminate unnecessary parts of mmu.h.