Commit graph

442 commits

Author SHA1 Message Date
rsc
b63bb0fd00 Clean up lapic code.
One initialization function now, not three.
Use #defines instead of enums (consistent with other code, but sigh).

Still boots in Bochs in SMP mode.
2007-08-27 16:57:13 +00:00
rsc
112873bc65 nits 2007-08-27 16:55:10 +00:00
rsc
da94233784 nits 2007-08-27 16:12:08 +00:00
rsc
3ce1647078 nits 2007-08-27 16:06:19 +00:00
rsc
603deefc6b oops 2007-08-27 16:06:15 +00:00
rsc
629c1fe743 Edit exec.
Do not commit to new memory image until
nothing can go wrong, avoiding bad2 case.

Be sure to allocate enough stack space for argv.

Load executable before initializing stack, to
keep ELF loops together.

Make argv loop clearer.
2007-08-27 15:17:40 +00:00
rsc
e79b16598c nits 2007-08-27 14:39:50 +00:00
rsc
13491bf367 formatting shuffle 2007-08-27 14:37:13 +00:00
rsc
1ccff18b24 fileincref -> filedup (consistent with idup) 2007-08-27 14:35:09 +00:00
rsc
7895178df3 nits 2007-08-27 14:31:50 +00:00
rsc
6c34f97cb8 tell what an inode is 2007-08-27 14:23:48 +00:00
rsc
a505fd6651 FS cleanup.
Add utility routines bzero, readsb so that balloc, bfree fit on one page.
Make balloc loop clearer.
2007-08-27 14:20:24 +00:00
rsc
d003d232fc Another attempt at the bio.c comment.
Rename B_WRITE to B_DIRTY and then let ide.c
maintain the B_VALID and B_DIRTY flags.
2007-08-27 14:09:30 +00:00
rsc
efc12b8e61 Replace yield system call with sleep. 2007-08-27 13:34:35 +00:00
rsc
e1872bb130 formatting, fix comment 2007-08-27 13:11:13 +00:00
rsc
e0240674f5 make kfree loop same as kalloc 2007-08-27 12:50:36 +00:00
rsc
7bb73cdbc7 nits 2007-08-27 12:48:20 +00:00
rsc
8e67005320 cut bootmain to 1 sheet 2007-08-27 12:48:03 +00:00
rsc
8d2e9a4867 shuffle for formatting 2007-08-24 22:17:54 +00:00
rsc
d7b44dbcfc minor cleanups 2007-08-24 22:17:41 +00:00
rsc
cb30c81860 nit 2007-08-24 21:33:11 +00:00
rsc
872a63e104 nits 2007-08-24 21:14:58 +00:00
rsc
766ba5cc06 first ever correct use of strncpy 2007-08-24 21:00:02 +00:00
rsc
aa6824ab64 remove unused variable 2007-08-24 20:59:43 +00:00
rsc
07090dd705 Remove struct uinode.
Remove type arg to mknod (assume T_DEV).
2007-08-24 20:54:23 +00:00
rsc
fa1b34106a not first anymore 2007-08-24 20:28:21 +00:00
rsc
97ac612fb1 nits 2007-08-24 20:28:08 +00:00
rsc
ffa58d3616 align 2007-08-24 20:27:47 +00:00
rsc
dd86897434 make wakeup1 static 2007-08-24 20:22:55 +00:00
rsc
e0e7d07e5a test that fork fails gracefully 2007-08-24 20:20:23 +00:00
rsc
5af5f6aa7f Reorder spinlock.c: acquire and release first 2007-08-24 20:06:14 +00:00
rsc
4bcd0f6a77 Add yield system call, for zombie test program (bad idea?). 2007-08-24 20:04:53 +00:00
rsc
1b789e1d50 Remove puts in favor of printf.
Allow multiple arguments to ls.
2007-08-24 20:03:40 +00:00
rtm
8e88f9e2c6 comment nits 2007-08-24 19:52:49 +00:00
rsc
4d39b63388 nits 2007-08-24 19:46:19 +00:00
rsc
895c182d74 finish comments 2007-08-24 19:37:24 +00:00
rsc
124f32ae38 tweak 2007-08-24 19:36:52 +00:00
rtm
902b13f5d6 simplify ide queuing
nits in comments
2007-08-24 19:32:36 +00:00
rsc
2bc72bdd29 bring bootasm and bootother more in sync 2007-08-24 19:25:52 +00:00
rsc
5d1f4b8a3a Rework comments a bit.
Move initialization of %sp after
protected mode jump and change to %esp.
2007-08-24 18:52:59 +00:00
rtm
2036534834 add missing iput() at end of _namei() 2007-08-24 14:56:17 +00:00
rtm
b55513796f oops, O_CREATE doesn't truncate, so holes can't exist, thus no bug 2007-08-24 12:55:15 +00:00
rtm
3d5f21ee1f test concurrent open/unlink of same file (ok)
test files with holes (not ok)
2007-08-24 12:19:13 +00:00
rsc
68ae4cc127 comment what +m means; omit needless __ 2007-08-24 00:34:54 +00:00
rsc
2aae720537 omit needless ampersands 2007-08-24 00:02:03 +00:00
rsc
649bc99fe4 align, sort 2007-08-23 23:58:19 +00:00
rsc
b1fb19b6df Use parent pointer instead of ppid. 2007-08-23 14:40:30 +00:00
rsc
3a057d12ae avoid hardcoding init as pid 1 proc[0] 2007-08-23 14:35:28 +00:00
rsc
1d7839a1da my mistake found by robert 2007-08-22 17:45:52 +00:00
rsc
e9ddc7c099 NREQUEST = NBUF 2007-08-22 14:38:00 +00:00