#
3b95801a |
| 29-Aug-2006 |
rtm <rtm> |
i broke sbrk, fix it
|
#
2b19190c |
| 29-Aug-2006 |
rtm <rtm> |
clean up stale error checks and panics delete unused functions a few comments
|
#
74493bf4 |
| 25-Aug-2006 |
kaashoek <kaashoek> |
kill user process when it generates an unhandled trap (e.g., 13) fix bug in test code of malloc
|
#
8787cd01 |
| 19-Aug-2006 |
kaashoek <kaashoek> |
chdir cd in shell nits in mkdir, ls, etc.
|
#
ceb0e427 |
| 16-Aug-2006 |
rtm <rtm> |
proc[0] can sleep(), at least after it gets to main00() proc[0] calls iget(rootdev, 1) before forking init
|
#
350e63f7 |
| 15-Aug-2006 |
rtm <rtm> |
no more proc[] entry per cpu for idle loop 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
|
#
5be0039c |
| 10-Aug-2006 |
rtm <rtm> |
interrupts could be recursive since lapic_eoi() called before rti so fast interrupts overflow the kernel stack fix: cli() before lapic_eoi()
|
#
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 ...
|
#
0e84a0ec |
| 08-Aug-2006 |
rtm <rtm> |
fix race in holding() check in acquire() 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
|
#
b5f17007 |
| 17-Jul-2006 |
rsc <rsc> |
standarize on unix-like lowercase struct names
|
#
b5ee5165 |
| 17-Jul-2006 |
rsc <rsc> |
add uint and standardize on typedefs instead of unsigned
|
#
ee9c7f3b |
| 17-Jul-2006 |
rsc <rsc> |
goodbye PushRegs
|
#
c54c7926 |
| 17-Jul-2006 |
rsc <rsc> |
nitpicks
|
#
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
|
#
72fef4f8 |
| 16-Jul-2006 |
rsc <rsc> |
Don't kill process when inside kernel.
|
#
6f2b626d |
| 16-Jul-2006 |
rsc <rsc> |
remove non-idiomatic increment/decrement
|
#
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.
|
#
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 ...
|
#
6eb6f10c |
| 12-Jul-2006 |
rtm <rtm> |
passes both usertests exit had acquire where I meant release swtch now checks that you hold no locks
|
#
4e8f237b |
| 12-Jul-2006 |
rtm <rtm> |
no more big kernel lock succeeds at usertests.c pipe test
|
#
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 ...
|
#
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)
|