Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2006-07-17 | add ide_lock for sleep | rsc | 6 | -8/+41 | |
2006-07-17 | standarize on unix-like lowercase struct names | rsc | 10 | -59/+59 | |
2006-07-17 | no more cons_putc; real_cons_putc -> cons_putc | rsc | 2 | -18/+7 | |
2006-07-17 | add uint and standardize on typedefs instead of unsigned | rsc | 15 | -82/+84 | |
2006-07-17 | cleaner | rsc | 1 | -2/+2 | |
2006-07-17 | goodbye PushRegs | rsc | 4 | -9/+6 | |
2006-07-17 | cleaner | rsc | 1 | -2/+2 | |
2006-07-17 | nitpicks | rsc | 11 | -32/+29 | |
2006-07-16 | Eliminate annoying Pseudodesc structure. | rsc | 6 | -107/+32 | |
Eliminate unnecessary parts of mmu.h. | |||||
2006-07-16 | various little fixes that should have been in earlier checkins | rsc | 2 | -3/+0 | |
2006-07-16 | more idiomatic c | rsc | 1 | -8/+5 | |
2006-07-16 | no memlayout.h | rsc | 1 | -1/+0 | |
2006-07-16 | was empty; gone | rsc | 1 | -0/+0 | |
2006-07-16 | fix main return type | rsc | 2 | -4/+7 | |
2006-07-16 | add %s to cprintf for cons_puts | rsc | 3 | -1/+23 | |
2006-07-16 | Keep interrupts disabled during startup. | rsc | 3 | -19/+32 | |
2006-07-16 | standardize on not using foo_ prefix in struct foo | rsc | 10 | -180/+181 | |
2006-07-16 | rename swtch.S to setjmp.S | rsc | 1 | -0/+0 | |
2006-07-16 | standardize on #include "foo" not <foo> | rsc | 2 | -5/+5 | |
2006-07-16 | add minimal comments to generator vector table | rsc | 1 | -3/+6 | |
2006-07-16 | remove acquire1 and release1 | rsc | 2 | -18/+4 | |
2006-07-16 | add cons_puts for atomic (readable) output | rsc | 2 | -5/+41 | |
2006-07-16 | Add user.h for prototypes. | rsc | 6 | -6/+40 | |
Add cons_puts for cleaner output. | |||||
2006-07-16 | tidy up | rsc | 1 | -13/+24 | |
2006-07-16 | Don't kill process when inside kernel. | rsc | 1 | -3/+10 | |
2006-07-16 | more name cleanup | rsc | 2 | -10/+8 | |
2006-07-16 | remove non-idiomatic increment/decrement | rsc | 3 | -10/+3 | |
2006-07-16 | Rename fd_reference to more suggestive fd_incref. | rsc | 3 | -3/+3 | |
(Fd_reference sounds like it might just return the ref count.) | |||||
2006-07-16 | Attempt to clean up newproc somewhat. | rsc | 7 | -79/+98 | |
Also remove all calls to memcpy in favor of memmove, which has defined semantics when the ranges overlap. The fact that memcpy was working in console.c to scroll the screen is not guaranteed by all implementations. | |||||
2006-07-16 | New scheduler. | rsc | 11 | -205/+224 | |
Removed cli and sti stack in favor of tracking number of locks held on each CPU and explicit conditionals in spinlock.c. | |||||
2006-07-16 | Undo change from this morning that wasn't intended to get in. | rsc | 1 | -1/+1 | |
2006-07-15 | move everything having to do with proc_table_lock into proc.c | rsc | 4 | -47/+62 | |
2006-07-15 | silence load_icode signedness warning | rsc | 1 | -3/+3 | |
2006-07-15 | Add void for ANSI C | rsc | 1 | -13/+11 | |
2006-07-15 | Change fetchint, fetcharg, and putint to return -1 on error, 0 on success. | rsc | 1 | -5/+5 | |
They had been returning 0 on error, 1 on success, but all the callers were checking for return value < 0. | |||||
2006-07-15 | no more recursive locks | rtm | 15 | -102/+229 | |
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 | |||||
2006-07-12 | and the file | kaashoek | 1 | -0/+204 | |
2006-07-12 | extract lapic code from mp.c | kaashoek | 4 | -206/+18 | |
2006-07-12 | passes both usertests | rtm | 6 | -31/+34 | |
exit had acquire where I meant release swtch now checks that you hold no locks | |||||
2006-07-12 | i think my cmpxchg use was wrong in acquire | rtm | 11 | -32/+85 | |
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) | |||||
2006-07-12 | cvs add spinlock.h | rtm | 4 | -3/+17 | |
fix race in schedule() | |||||
2006-07-12 | no more big kernel lock | rtm | 15 | -95/+202 | |
succeeds at usertests.c pipe test | |||||
2006-07-11 | give each cpu its own clock, so that preemption works on cpu 1 | rtm | 2 | -2/+4 | |
2006-07-11 | pre-empt both user and kernel, in clock interrupt | rtm | 12 | -47/+152 | |
usertest.c tests pre-emption kill() | |||||
2006-07-11 | Changes to allow use of native x86 ELF compilers, which on my | rsc | 19 | -130/+199 | |
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. | |||||
2006-07-10 | queue with disk requests | kaashoek | 4 | -24/+62 | |
2006-07-10 | oops | kaashoek | 1 | -0/+8 | |
2006-07-10 | read the disk using interrupts | kaashoek | 4 | -17/+36 | |
2006-07-06 | disable all interrupts when acquiring lock | kaashoek | 10 | -14/+58 | |
user program that makes a blocking system call | |||||
2006-07-05 | timer interrupts | kaashoek | 9 | -151/+198 | |
disk interrupts (assuming bochs has a bug) |