summaryrefslogtreecommitdiff
path: root/syscall.c
AgeCommit message (Collapse)Author
2010-09-01Remove the stack guard page. Processes are now contiguous from 0 to ↵Austin Clements
proc->sz, which means our syscall argument validation is correct. Add a pointer validation test and remove the stack test, which tested for the guard page.
2010-08-11uptime() sys call for benchmarkingRobert Morris
increase PHYSTOP
2010-07-02nitsFrans Kaashoek
2010-07-02Initial version of single-cpu xv6 with page tablesFrans Kaashoek
2009-08-30assorted fixes:Russ Cox
* rename c/cp to cpu/proc * rename cpu.context to cpu.scheduler * fix some comments * formatting for printout
2007-08-28spaces around else for rtmrsc
2007-08-28more consistent spacingrsc
2007-08-27make code match commentrsc
2007-08-27make code match commentrsc
2007-08-27delete unnecessary #include linesrsc
2007-08-27Replace yield system call with sleep.rsc
2007-08-24nitsrsc
2007-08-24Add yield system call, for zombie test program (bad idea?).rsc
2007-08-24simplify ide queuingrtm
nits in comments
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-14formattingrsc
2007-08-10Make cp a magic symbol.rsc
2007-08-09try to use cp only for curproc[cpu()]rsc
2007-08-08convert syscall dispatch to tablersc
2006-09-07refactor syscall codersc
2006-09-07comment fixesrsc
2006-09-06for vs whilersc
2006-09-06fd.* -> file.*rsc
2006-09-06split syscall.c into sysfile.c and sysproc.crsc
2006-09-06writeable => writablersc
2006-09-06no /* */ commentsrsc
2006-09-06standardize various * conventionsrsc
2006-08-30complain if no disk 1rtm
lots of cleanup
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-26consistently ignore more than 14 chars in path componentrtm
forbid create or write of existing directory mkdir("d1/d2/d3"), .. should refer to d2, not cwd mkdir increase parent link count
2006-08-26mkdir check error from mknodrtm
chdir return -1 if target not a dir
2006-08-25inode addrs[NDIRECT] -> NADDRSrtm
fix race in mknod / creat use last component in dirent in mknod, not path
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-20compiling, but untested dupkaashoek
2006-08-20removed block system callkaashoek
renumber system calls (run gmake clean!) skeleton for dup system call
2006-08-19chdirkaashoek
cd in shell nits in mkdir, ls, etc.
2006-08-14set size for directories correctly in wdir and mkfskaashoek
mkdir ls shows stat info for each dir entry
2006-08-14start on mkdirkaashoek
stat
2006-08-13fix iget() bug that allocated in-use inode[] entriesrtm
2006-08-13namei returns locked parent dir inode for create / unlinkrtm
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
2006-08-13link()rtm
2006-08-12fix getblk to actually lock the blockrtm
no more cons_put system calls usertests tests two processes writing files
2006-08-12fstatkaashoek
primitive ls
2006-08-12unlink,mknod,create with multi-component pathnames should work nowkaashoek
remove console init code from userfs
2006-08-11fix deadlock---iput(dp) asapkaashoek
working unlink, but doesn't free dir blocks that become empty remove out-of-date comment in ioapic
2006-08-11init creates console, opens 0/1/2, runs shrtm
sh accepts 0-argument commands (like userfs) reads from console