Commit graph

74 commits

Author SHA1 Message Date
Frans Kaashoek
9aa0337dc1 Map kernel high
Very important to give qemu memory through PHYSTOP :(
2011-07-29 07:31:27 -04:00
Russ Cox
c5f5387351 fixes from Peter Froehlich 2011-02-28 09:32:20 -05:00
Russ Cox
1a81e38b17 make new code like old code
Variable declarations at top of function,
separate from initialization.

Use == 0 instead of ! for checking pointers.

Consistent spacing around {, *, casts.

Declare 0-parameter functions as (void) not ().

Integer valued functions return -1 on failure, 0 on success.
2011-01-11 13:01:13 -05:00
Austin Clements
8440dbfee1 Get consoleintr back on one page 2010-09-02 18:54:50 -04:00
Austin Clements
08eef9eae5 Get cgaputc and consputc back on the same page 2010-09-02 18:50:49 -04:00
Austin Clements
b0751a3e9b Space police 2010-09-01 00:41:25 -04:00
Austin Clements
5efca9054f Tab police 2010-09-01 00:32:27 -04:00
Austin Clements
29d8c2eebb Handle backspace on serial input and output better. Better solutions are welcome. 2009-09-30 22:32:50 -04:00
Austin Clements
3adc415471 Hack to make newlines on the serial port work 2009-09-20 23:09:59 -04:00
Russ Cox
48755214c9 assorted fixes:
* rename c/cp to cpu/proc
 * rename cpu.context to cpu.scheduler
 * fix some comments
 * formatting for printout
2009-08-30 23:02:08 -07:00
Russ Cox
0aef891495 shuffle and tweak for formatting.
pdf has very good page breaks now.
would be a good copy for fall 2009.
2009-08-08 01:07:30 -07:00
rsc
34295f461a group locks into structs they protect.
few naming nits.
2009-05-31 05:12:21 +00:00
rsc
74afa70d30 Add serial port input/output.
Delete parallel port output.
Works well with qemu -nographic mode.
2009-05-31 00:24:11 +00:00
rsc
2157576107 be consistent: no underscores in function names 2009-03-08 22:07:13 +00:00
kolya
289bbef733 minor cleanup 2008-10-12 20:19:16 +00:00
kolya
02cc595f28 clean up circular buffers, so pipe can queue 512 bytes rather than 511 2008-08-22 00:26:22 +00:00
kolya
5c5470a2fa fix obvious printf nits after reading through code 2008-08-21 23:24:02 +00:00
rsc
aefc13f8ba nit 2007-09-27 20:25:32 +00:00
rsc
75506c6655 use console lock 2007-09-27 12:29:25 +00:00
rtm
fbd8857d4d make new Homework 8 work 2007-08-30 18:21:35 +00:00
rsc
37321196a4 oops - broke circular buffer 2007-08-30 18:20:53 +00:00
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
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
51c0c1a8fe avoid double echo 2007-08-28 04:26:19 +00:00
rsc
e6ffaa9d8e oops 2007-08-28 04:13:40 +00:00
rsc
f0d11fea82 Move keyboard code into kbd.c; add backspace handling. 2007-08-28 03:28:13 +00:00
rsc
558ab49f13 delete unnecessary #include lines 2007-08-27 23:26:33 +00:00
rsc
97ac612fb1 nits 2007-08-24 20:28:08 +00:00
rsc
fe5f50a03d fixes 2007-08-14 19:41:01 +00:00
rsc
5e8c5d8bb8 formatting; split kbd constants into kbd.h 2007-08-14 19:31:16 +00:00
rsc
b6095304b7 Make cp a magic symbol. 2007-08-10 16:37:27 +00:00
rsc
f2f062da61 check p->killed for long-lived sleeps 2007-08-08 10:29:42 +00:00
rsc
c664dd5d23 missing void 2007-08-08 09:32:39 +00:00
rsc
07018064bb add EOF handling to console_read - works with cat 2007-08-08 08:04:02 +00:00
rsc
5a71f93301 debugging rearrangements 2006-09-07 16:52:13 +00:00
rsc
ab17e3198b debugging prints 2006-09-07 15:45:38 +00:00
rsc
19297caf0d fix ide, pit interfaces 2006-09-07 15:29:54 +00:00
rsc
1dca3afbbb remove _ prefixes 2006-09-07 13:08:23 +00:00
kaashoek
f70172129c run without lapic and ioapic, if they are not present
if no lapic available, use 8253pit for clock
now xv6 runs both on qemu (uniprocessor) and bochs (uniprocessor and MP)
2006-09-07 01:37:58 +00:00
kaashoek
f9bc4452b5 nit in console interrupts 2006-09-07 00:00:33 +00:00
rsc
f552738889 no /* */ comments 2006-09-06 17:50:20 +00:00
rsc
9e9bcaf143 standardize various * conventions 2006-09-06 17:27:19 +00:00
rsc
a650c606fe spacing fixes: no tabs, 2-space indents (for rtm) 2006-09-06 17:04:06 +00:00
rsc
45854caa93 print "0" for null string 2006-09-06 16:38:39 +00:00
kaashoek
0b6ab8416e don't send keyboard interrupts to the second cpu, if we have only one cpu.
xv6 seems to work fine on uniprocessor now.
2006-09-03 17:34:09 +00:00
kaashoek
7abf49d2f2 remove duplication
don't use the same name for two different pieces of code
2006-09-03 15:39:29 +00:00
rtm
2b19190c13 clean up stale error checks and panics
delete unused functions
a few comments
2006-08-29 14:45:45 +00:00