Commit graph

619 commits

Author SHA1 Message Date
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
rsc ba6cd8a685 drop NADDRS and INDIRECT; too many names 2009-05-31 00:59:37 +00:00
rsc 030a47736f tab police 2009-05-31 00:39:17 +00:00
rsc 215738336a move fork into proc.c 2009-05-31 00:38:51 +00:00
rsc dae9b0d48a missed this file in last checkin 2009-05-31 00:31:20 +00:00
rsc 19333efb9e Some proc cleanup, moving some of copyproc into allocproc.
Also, an experiment: use "thread-local" storage for c and cp
instead of the #define macro for curproc[cpu()].
2009-05-31 00:28:45 +00:00
rsc 0c7f483838 move T_DIR etc into stat.h; move type up 2009-05-31 00:26:10 +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 0ca9ca0c55 slight rearrangement; sleep on b not buf. 2009-05-31 00:23:00 +00:00
rsc d827c8f3c8 Add MIT license file; update xv6-rev2.tar.gz with LICENSE.
Other files unchanged.
2009-05-26 16:58:33 +00:00
rsc 2157576107 be consistent: no underscores in function names 2009-03-08 22:07:13 +00:00
rsc b7f653dc49 xv6: boot loader adjustments
do Bochs breakpoint and spin in bootasm.S.
not needed in bootmain too.
fix readseg bug (rounding of va).
zero segments when memsz > filesz.
no need to clear BSS in kernel main.
make bootother.S like bootasm.S
2009-03-08 21:41:30 +00:00
rsc 8220135362 xv6: use stosb for memset 2009-03-08 21:38:30 +00:00
rsc c396d065d3 xv6/x86.h: add stosb, fix bugs in insl/outsl (rep not repne) 2009-03-08 21:27:57 +00:00
rsc 4003e9bed8 xv6/x86.h: inline assembly cleanup 2009-03-08 20:56:38 +00:00
rtm 8eb20827c2 Explain why itrunc() is OK w.r.t. crashes. 2008-10-20 18:05:48 +00:00
kolya 15a2693637 try harder to get directory refcounts right 2008-10-17 12:42:13 +00:00
kolya f3e87bc838 make mkdir crash-safer, as noticed by many students on midterm 2008-10-16 15:18:49 +00:00
kolya e1626709d6 free the indirect block 2008-10-16 15:00:23 +00:00
kolya e670a48358 as rtm noticed, avoid doubly-freeing pipe page 2008-10-15 17:42:56 +00:00
kolya deca9fef83 indent 2008-10-15 05:15:32 +00:00
kolya c100d9ee2d cleaner swtch.S 2008-10-15 05:14:10 +00:00