Revision tags: xv6-rev11, xv6-rev9, xv6-rev8, xv6-rev7, osdi12-submit, xv6-rev6, xv6-rev5, xv6-2010, xv6-rev4 |
|
#
789b508d |
| 11-Aug-2010 |
Robert Morris <rtm@nephron.lcs.mit.edu> |
uptime() sys call for benchmarking increase PHYSTOP
|
Revision tags: xv6-rev3 |
|
#
949e5590 |
| 31-May-2009 |
rsc <rsc> |
usys.S: put before init.c, STUB -> SYSCALL
|
Revision tags: xv6-2008, xv6-2007, xv6-rev1 |
|
#
efc12b8e |
| 27-Aug-2007 |
rsc <rsc> |
Replace yield system call with sleep.
|
#
4bcd0f6a |
| 24-Aug-2007 |
rsc <rsc> |
Add yield system call, for zombie test program (bad idea?).
|
Revision tags: symlinks, xv6-2006, xv6-rev0 |
|
#
9e9bcaf1 |
| 06-Sep-2006 |
rsc <rsc> |
standardize various * conventions
|
#
a650c606 |
| 06-Sep-2006 |
rsc <rsc> |
spacing fixes: no tabs, 2-space indents (for rtm)
|
#
8b58e810 |
| 23-Aug-2006 |
kaashoek <kaashoek> |
i/o redirection in sh 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
i/o redirection in sh 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?
show more ...
|
#
16083d44 |
| 20-Aug-2006 |
kaashoek <kaashoek> |
removed block system call renumber system calls (run gmake clean!) skeleton for dup system call
|
#
8787cd01 |
| 19-Aug-2006 |
kaashoek <kaashoek> |
chdir cd in shell nits in mkdir, ls, etc.
|
#
d15f0d10 |
| 14-Aug-2006 |
kaashoek <kaashoek> |
start on mkdir stat
|
#
9e5970d5 |
| 13-Aug-2006 |
rtm <rtm> |
link()
|
#
43572072 |
| 12-Aug-2006 |
rtm <rtm> |
fix getblk to actually lock the block no more cons_put system calls usertests tests two processes writing files
|
#
1f544842 |
| 12-Aug-2006 |
kaashoek <kaashoek> |
fstat primitive ls
|
#
28d9ef04 |
| 10-Aug-2006 |
kaashoek <kaashoek> |
printf convert userfs to use printf bfree ifree writei start on unlink
|
#
e8d11c2e |
| 08-Aug-2006 |
kaashoek <kaashoek> |
mknod,ialloc,iupdate
|
#
32630628 |
| 29-Jul-2006 |
rtm <rtm> |
open()
|
#
c59361f1 |
| 27-Jul-2006 |
rtm <rtm> |
primitive exec
|
#
9b37d1bf |
| 16-Jul-2006 |
rsc <rsc> |
Add user.h for prototypes. Add cons_puts for cleaner output.
|
#
46bbd72f |
| 15-Jul-2006 |
rtm <rtm> |
no more recursive locks 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 lo
no more recursive locks 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
show more ...
|
#
b548df15 |
| 11-Jul-2006 |
rtm <rtm> |
pre-empt both user and kernel, in clock interrupt usertest.c tests pre-emption kill()
|
#
5ce9751c |
| 11-Jul-2006 |
rsc <rsc> |
Changes to allow use of native x86 ELF compilers, which on my Linux 2.4 box using gcc 3.4.6 don't seem to follow the same conventions as the i386-jos-elf-gcc compilers. Can run make 'TOOLPREFIX=' or
Changes to allow use of native x86 ELF compilers, which on my Linux 2.4 box using gcc 3.4.6 don't seem to follow the same conventions as the i386-jos-elf-gcc compilers. Can run make 'TOOLPREFIX=' or edit the Makefile.
curproc[cpu()] can now be NULL, indicating that no proc is running. This seemed safer to me than having curproc[0] and curproc[1] both pointing at proc[0] potentially.
The old implementation of swtch depended on the stack frame layout used inside swtch being okay to return from on the other stack (exactly the V6 you are not expected to understand this). It also could be called in two contexts: at boot time, to schedule the very first process, and later, on behalf of a process, to sleep or schedule some other process.
I split this into two functions: scheduler and swtch.
The scheduler is now a separate never-returning function, invoked by each cpu once set up. The scheduler looks like:
scheduler() { setjmp(cpu.context);
pick proc to schedule blah blah blah
longjmp(proc.context) }
The new swtch is intended to be called only when curproc[cpu()] is not NULL, that is, only on behalf of a user proc. It does:
swtch() { if(setjmp(proc.context) == 0) longjmp(cpu.context) }
to save the current proc context and then jump over to the scheduler, running on the cpu stack.
Similarly the system call stubs are now in assembly in usys.S to avoid needing to know the details of stack frame layout used by the compiler.
Also various changes in the debugging prints.
show more ...
|