Commit graph

415 commits

Author SHA1 Message Date
rsc
7834cca604 remove _ from pipe; be like file 2007-08-28 04:22:35 +00:00
rsc
76f09d7dd0 clean up Makefile; add wc 2007-08-28 04:20:40 +00:00
rsc
a1af366500 add struct stat decl 2007-08-28 04:20:25 +00:00
rsc
4c917f6df2 do not call proc_exit until lock dropped 2007-08-28 04:20:13 +00:00
rsc
1baead533f oops 2007-08-28 04:19:47 +00:00
rsc
b943284893 handle printf("%s\n", 0) 2007-08-28 04:15:35 +00:00
rsc
43baa1f224 nit 2007-08-28 04:14:32 +00:00
rsc
e6ffaa9d8e oops 2007-08-28 04:13:40 +00:00
rsc
3341e30f6e nit 2007-08-28 04:13:24 +00:00
rsc
a759b8a450 formatting tweaks 2007-08-28 03:46:58 +00:00
rsc
2868ca0f37 comment non-check of cp->killed 2007-08-28 03:32:49 +00:00
rsc
8970df0c1b No one is going to find this inode.
There is only one ref to it -- the caller --
and no links to it.
2007-08-28 03:31:11 +00:00
rsc
1b25f3b057 New shell. 2007-08-28 03:28:29 +00:00
rsc
f0d11fea82 Move keyboard code into kbd.c; add backspace handling. 2007-08-28 03:28:13 +00:00
rsc
c1bfbfa2f7 oops 2007-08-28 02:39:40 +00:00
rsc
fa74a74984 move mp.h to low-level 2007-08-27 23:55:45 +00:00
rsc
a8acdf02ee no more ioapic.h 2007-08-27 23:54:24 +00:00
rsc
773159fbee make code match comment 2007-08-27 23:53:50 +00:00
rsc
3a2310f746 make code match comment 2007-08-27 23:53:17 +00:00
rsc
64c4737477 make code match comment 2007-08-27 23:53:17 +00:00
rsc
19b42cc078 Rename main0 to main. 2007-08-27 23:32:16 +00:00
rsc
558ab49f13 delete unnecessary #include lines 2007-08-27 23:26:33 +00:00
rsc
99b11b6c64 Simplify MP hardware code.
Mainly delete unused constants and code.

Move mp_startthem to main.c as bootothers.
2007-08-27 22:53:31 +00:00
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