#
2aae7205 |
| 24-Aug-2007 |
rsc <rsc> |
omit needless ampersands
|
#
ef30c2c7 |
| 20-Aug-2007 |
rsc <rsc> |
no more w
|
#
64659055 |
| 14-Aug-2007 |
rsc <rsc> |
ditto
|
#
3163085a |
| 14-Aug-2007 |
rsc <rsc> |
Cannot use "g" as an arg constraint because some memory references aren't actually valid and gcc is a bit too smart in parsing (%0) and a bit too dumb in knowing which memory refs are not valid. Usi
Cannot use "g" as an arg constraint because some memory references aren't actually valid and gcc is a bit too smart in parsing (%0) and a bit too dumb in knowing which memory refs are not valid. Using "r" seems to constrain gcc to use a register as in (%eax) and not substitute a memory reference like (-36(%ebp)).
No one really understands these things.
show more ...
|
Revision tags: symlinks, xv6-2006, xv6-rev0 |
|
#
31085bb4 |
| 07-Sep-2006 |
rsc <rsc> |
more comments
|
#
f5527388 |
| 06-Sep-2006 |
rsc <rsc> |
no /* */ comments
|
#
9e9bcaf1 |
| 06-Sep-2006 |
rsc <rsc> |
standardize various * conventions
|
#
a650c606 |
| 06-Sep-2006 |
rsc <rsc> |
spacing fixes: no tabs, 2-space indents (for rtm)
|
#
7abf49d2 |
| 03-Sep-2006 |
kaashoek <kaashoek> |
remove duplication don't use the same name for two different pieces of code
|
#
2b19190c |
| 29-Aug-2006 |
rtm <rtm> |
clean up stale error checks and panics delete unused functions a few comments
|
#
8a8be1b8 |
| 10-Aug-2006 |
rtm <rtm> |
low-level keyboard input (not hooked up to /dev yet) fix acquire() to cli() *before* incrementing nlock make T_SYSCALL a trap gate, not an interrupt gate sadly, various crashes if you hold down a key
low-level keyboard input (not hooked up to /dev yet) fix acquire() to cli() *before* incrementing nlock make T_SYSCALL a trap gate, not an interrupt gate sadly, various crashes if you hold down a keyboard key...
show more ...
|
#
29270816 |
| 20-Jul-2006 |
rtm <rtm> |
uint32_t -> uint &c
|
#
b5f17007 |
| 17-Jul-2006 |
rsc <rsc> |
standarize on unix-like lowercase struct names
|
#
ee9c7f3b |
| 17-Jul-2006 |
rsc <rsc> |
goodbye PushRegs
|
#
564f787e |
| 16-Jul-2006 |
rsc <rsc> |
Eliminate annoying Pseudodesc structure. Eliminate unnecessary parts of mmu.h.
|
#
ef2bd07a |
| 16-Jul-2006 |
rsc <rsc> |
standardize on not using foo_ prefix in struct foo
|
#
65bd8e13 |
| 16-Jul-2006 |
rsc <rsc> |
New scheduler.
Removed cli and sti stack in favor of tracking number of locks held on each CPU and explicit conditionals in spinlock.c.
|
#
8148b6ee |
| 12-Jul-2006 |
rtm <rtm> |
i think my cmpxchg use was wrong in acquire nesting cli/sti: release shouldn't always enable interrupts separate setup of lapic from starting of other cpus, so cpu() works earlier flag to disable loc
i think my cmpxchg use was wrong in acquire nesting cli/sti: release shouldn't always enable interrupts separate setup of lapic from starting of other cpus, so cpu() works earlier flag to disable locking in console output make locks work even when curproc==0 (still crashes in clock interrupt)
show more ...
|
#
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 ...
|
#
7837c71b |
| 06-Jul-2006 |
kaashoek <kaashoek> |
disable all interrupts when acquiring lock user program that makes a blocking system call
|
#
b22d8982 |
| 05-Jul-2006 |
kaashoek <kaashoek> |
timer interrupts disk interrupts (assuming bochs has a bug)
|
#
8b4e2a08 |
| 01-Jul-2006 |
rtm <rtm> |
swtch saves callee-saved registers swtch idles on per-CPU stack, not on calling process's stack fix pipe bugs usertest.c tests pipes, fork, exit, close
|
#
21a88fd4 |
| 22-Jun-2006 |
kaashoek <kaashoek> |
checkpoint. booting second processor. stack is messed up, but thanks to cliff and plan 9 code, at least boots and gets into C code.
|
#
55e95b16 |
| 12-Jun-2006 |
rtm <rtm> |
import
|