Commit graph

585 commits

Author SHA1 Message Date
rsc
eb52c7de1d comments; rename irq_ to pic_ 2007-08-28 19:04:36 +00:00
rsc
5516be1fed spaces around else for rtm 2007-08-28 18:37:41 +00:00
rsc
e4d6a21165 more consistent spacing 2007-08-28 18:32:08 +00:00
rsc
c1b100e930 nits 2007-08-28 18:23:48 +00:00
rsc
3e1eaf226d fix offsets 2007-08-28 18:04:43 +00:00
rsc
a491dba00c more cmain -> bootmain 2007-08-28 18:02:49 +00:00
rsc
d844f0f9d9 Change dev read/write functions
to take inode* instead of minor number.

Unlock console inode during console_read
and console_write.  Otherwise background
processes cannot write to console while the
shell is reading it waiting for input.
2007-08-28 17:49:49 +00:00
rsc
e3f271e880 oops 2007-08-28 17:48:44 +00:00
rsc
c35c064e04 cmain -> bootmain 2007-08-28 13:01:10 +00:00
rsc
fc21046754 nit 2007-08-28 12:52:14 +00:00
rsc
818fc0125e replace setjmp/longjmp with swtch 2007-08-28 12:48:33 +00:00
rsc
b52dea08bc never returns! 2007-08-28 05:19:45 +00:00
rsc
0c931af50f nits 2007-08-28 05:01:04 +00:00
rsc
6eed1ee9b0 formatting 2007-08-28 05:00:53 +00:00
rsc
c2f354e4e1 clumsy blank pages to make some files align better 2007-08-28 05:00:39 +00:00
rsc
2d7d2b18cf rename 8253pit -> timer 2007-08-28 04:41:20 +00:00
rsc
9e82bfb04c rename 8253pit.c to timer.c 2007-08-28 04:40:58 +00:00
rsc
eae04163a7 runoff 2007-08-28 04:26:55 +00:00
rsc
1a89baa7c6 add grep; add lost echo 2007-08-28 04:26:34 +00:00
rsc
51c0c1a8fe avoid double echo 2007-08-28 04:26:19 +00:00
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