#
32630628 |
| 29-Jul-2006 |
rtm <rtm> |
open()
|
#
c59361f1 |
| 27-Jul-2006 |
rtm <rtm> |
primitive exec
|
#
9d3fb671 |
| 21-Jul-2006 |
rtm <rtm> |
namei
|
#
11a9947f |
| 21-Jul-2006 |
rtm <rtm> |
bread iget mkfs makes a file system image put this in your .bochsrc: ata0-slave: type=disk, mode=flat, path="fs.img", cylinders=1024, heads=1, spt=1
|
#
29270816 |
| 20-Jul-2006 |
rtm <rtm> |
uint32_t -> uint &c
|
#
0dd42537 |
| 17-Jul-2006 |
rsc <rsc> |
add ide_lock for sleep
|
#
e0966f45 |
| 17-Jul-2006 |
rsc <rsc> |
no more cons_putc; real_cons_putc -> cons_putc
|
#
b5ee5165 |
| 17-Jul-2006 |
rsc <rsc> |
add uint and standardize on typedefs instead of unsigned
|
#
c54c7926 |
| 17-Jul-2006 |
rsc <rsc> |
nitpicks
|
#
ef2bd07a |
| 16-Jul-2006 |
rsc <rsc> |
standardize on not using foo_ prefix in struct foo
|
#
679a977c |
| 16-Jul-2006 |
rsc <rsc> |
remove acquire1 and release1
|
#
51716a86 |
| 16-Jul-2006 |
rsc <rsc> |
Rename fd_reference to more suggestive fd_incref. (Fd_reference sounds like it might just return the ref count.)
|
#
856e1fc1 |
| 16-Jul-2006 |
rsc <rsc> |
Attempt to clean up newproc somewhat.
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 scro
Attempt to clean up newproc somewhat.
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.
show more ...
|
#
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.
|
#
643b122b |
| 15-Jul-2006 |
rsc <rsc> |
move everything having to do with proc_table_lock into proc.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 ...
|
#
f27a68a2 |
| 12-Jul-2006 |
kaashoek <kaashoek> |
extract lapic code from mp.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 ...
|
#
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 ...
|
#
7ea6c9d1 |
| 10-Jul-2006 |
kaashoek <kaashoek> |
queue with disk requests
|
#
72ea69fb |
| 10-Jul-2006 |
kaashoek <kaashoek> |
read the disk using interrupts
|
#
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)
|