Commit graph

740 commits

Author SHA1 Message Date
Austin Clements
6639ce56d9 Provide memcpy for compatibility with older versions of gcc 2009-10-07 12:05:56 -04:00
Austin Clements
77a9aa55cd Record debug info for assmebly code 2009-10-05 13:20:23 -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
bab819ed8d Be consistent with JOS make targets 2009-09-30 22:09:48 -04:00
Austin Clements
3adc415471 Hack to make newlines on the serial port work 2009-09-20 23:09:59 -04:00
Austin Clements
67f7909fe1 Use the symbol file 2009-09-20 23:08:36 -04:00
Austin Clements
01396b3a87 xv6 runs the console on the serial port, not the parallel port 2009-09-20 23:07:59 -04:00
Frans Kaashoek
ccd980bedf nit in comment 2009-09-20 20:19:58 -04:00
Silas Boyd-Wickizer
074ac7ccd4 add .gdbinit.tmpl to dist 2009-09-15 19:15:59 -04:00
Silas Boyd-Wickizer
8252f6287d add uart.c 2009-09-15 19:15:48 -04:00
Silas Boyd-Wickizer
01b667e45d rev3 2009-09-15 17:21:14 -04:00
Silas Boyd-Wickizer
37ba1c1ea6 ignore .gitignore 2009-09-15 17:21:02 -04:00
Silas Boyd-Wickizer
568bbae801 qemu-gdb target and script 2009-09-15 17:15:36 -04:00
Russ Cox
c51e175bf0 new pdf 2009-09-03 00:46:28 -07:00
Russ Cox
c9ee77b8a2 formatting tweaks 2009-09-03 00:46:15 -07:00
Russ Cox
d26025d124 can set just %gs now. 2009-09-02 10:09:34 -07:00
Russ Cox
7e0cc8e36e another attempt at cpu-local variables.
this time do it ourselves instead of piggybacking on TLS.
add -fno-pic to Makefile; pic code breaks our fake TLS.
2009-09-02 10:07:59 -07:00
Russ Cox
374362c55c lapic: disable microdelay because it makes Bochs slow 2009-09-02 10:06:37 -07:00
Russ Cox
f8ab2079cd fix TLS again;
still not quite but a lot better.
2009-09-02 07:59:24 -07:00
Russ Cox
57ae146362 Fix TLS for PIC systems 2009-09-02 07:41:08 -07:00
Nickolai Zeldovich
45a9782636 fix bootblock build with gcc 4.4 2009-09-02 02:03:46 -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
Russ Cox
b3bebfce8a exec tweaks 2009-07-13 09:34:45 -07:00
Russ Cox
fd8e368101 remove //DOC in the right place 2009-07-12 19:07:30 -07:00
Russ Cox
4ed996f552 strip //DOC comments during printing 2009-07-12 18:56:00 -07:00
Russ Cox
d42cbd75b2 merge 2009-07-12 18:39:07 -07:00
Russ Cox
00e571155c more doc tweaks 2009-07-12 18:33:37 -07:00
Silas Boyd-Wickizer
ee1e682663 undo 2009-07-12 15:28:14 -04:00
Silas Boyd-Wickizer
7fff3131ba test commit email 2009-07-12 15:17:29 -04:00
Russ Cox
2c5f7aba38 initproc, usegment, swtch tweaks 2009-07-11 19:28:29 -07:00
Russ Cox
b121486c3f spinlock: rename parameter lock -> lk 2009-07-11 19:26:51 -07:00
Russ Cox
b8912d999f mmu.h: unused SEG_NULL 2009-07-11 19:26:29 -07:00
Russ Cox
f9a06440ab rearrangements and cleanup for text 2009-07-11 19:26:01 -07:00
Russ Cox
2de1c550ca trap cleanup
IRQ_OFFSET -> T_IRQ0 (a trap number not an IRQ number)
T_SYSCALL 0x30 -> 0x40 (move out of IRQ range)
2009-07-11 19:24:56 -07:00
Russ Cox
887f19686c bootasm cleanup 2009-07-11 19:15:32 -07:00
Russ Cox
8b75366ce4 s/IRQ_OFFSET/T_IRQ0/: it's a trap number, not an irq number.
move the SYSCALL number up, so does not overlap the IRQ traps.
2009-07-11 18:17:32 -07:00
rsc
27ff8f0e6f compile fixes 2009-05-31 05:13:51 +00:00
rsc
34295f461a group locks into structs they protect.
few naming nits.
2009-05-31 05:12:21 +00:00
rsc
949e55902b usys.S: put before init.c, STUB -> SYSCALL 2009-05-31 02:14:04 +00:00
rsc
90bab90832 exec sanity check 2009-05-31 02:11:27 +00:00
rsc
f3685aa391 simplify 2009-05-31 02:07:51 +00:00
rsc
7f399ccaa4 use ftable like btable and itable 2009-05-31 02:07:26 +00:00
rsc
ce72cadbe0 fix bug fix 2009-05-31 01:53:08 +00:00
rsc
13ae8808c4 tidy fs.c; bmap callers always expected allocation 2009-05-31 01:44:20 +00:00
rsc
f12551b599 inode reuse bug.
Suppose an inode has been used and freed.
It is left marked I_VALID (the bug).
Now ialloc comes along and reuses the
inode.  It writes the new inode type to disk
and returns iget(dev, inum) to get the
cache entry.  Iget sees that the inode is valid
and doesn't bother refreshing from disk.
Now when the caller iupdates, it will write
out a zero type and the file or directory has
disappeared.
2009-05-31 01:34:46 +00:00
rsc
0badeaa29f bio.c: use struct like icache does 2009-05-31 01:29:17 +00:00
rsc
c47bc4fd54 ide.c: make names more regular 2009-05-31 01:29:01 +00:00
rsc
7b644318dd clean up %fs %gs use 2009-05-31 01:12:08 +00:00
rsc
e97519a6d2 sync with c; .text is implied 2009-05-31 01:00:38 +00:00