Commit graph

781 commits

Author SHA1 Message Date
Austin Clements 3c01f5a0ed Remove data.S from runoff, too 2011-09-02 14:52:53 -04:00
Austin Clements 30c1901a5a Remove unused x86.h definitions 2011-09-02 14:52:13 -04:00
Austin Clements dd4438b4fe Nuke data.S, since we do have a custom linker script. 2011-09-02 14:51:55 -04:00
Austin Clements ce6dd9de27 Correct terminology in kernel.ld 2011-09-02 14:46:01 -04:00
Austin Clements 6f3ca059f2 Oops, dropped a paren 2011-09-02 14:37:42 -04:00
Austin Clements 2eb214c9db clear_pte_u -> clearpteu 2011-09-02 14:37:04 -04:00
Austin Clements 91aa0f3296 Move copy_pte_u; fits vm.c in one less column and aligns proc.h 2011-09-02 14:35:58 -04:00
Austin Clements 9e4272c14e Cleanup comments and fit setupkvm on same page as kmap, which aligns lots of other things 2011-09-02 14:34:29 -04:00
Austin Clements 14835ec987 Style 2011-09-02 14:28:44 -04:00
Austin Clements cf7b670293 Make mappages fit on the page 2011-09-02 14:11:16 -04:00
Austin Clements 82bb0b56c6 bootother -> entryother in README 2011-09-02 14:00:33 -04:00
Austin Clements 052e18485d Skip missing page directories in deallocuvm
Previously, deallocuvm scanned from 0 to KERNBASE in one page
increments, which had a noticable effect on boot time.  Now it skips
over missing page directories.
2011-09-01 21:29:09 -04:00
Robert Morris 1eadf4a8fc Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6 2011-09-01 13:26:03 -04:00
Robert Morris 371ab7fa96 inaccessible page under the user stack page, to help exec deal w/ too-large args 2011-09-01 13:25:34 -04:00
Frans Kaashoek 6bb9221395 Fix layout 2011-09-01 13:18:02 -04:00
Frans Kaashoek e04329aae8 Have one definition of kernel stack size 2011-09-01 12:18:43 -04:00
Robert Morris 62e3b8a92c Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Conflicts:
	vm.c
2011-09-01 12:03:49 -04:00
Robert Morris 5a23692444 fix usertests to correctly test what happens when you call
exec() with arguments that don't fit on a single page.
2011-09-01 12:02:49 -04:00
Austin Clements d0f3efca65 Use stosl in memset; makes boot time bearable 2011-09-01 10:41:27 -04:00
Frans Kaashoek e25b74ca80 Fix layout issues for printed version 2011-09-01 10:25:20 -04:00
Robert Morris 15997d5849 move the kernel to 0x80000000 2011-08-31 09:48:52 -04:00
Robert Morris 5c292b3d71 simplify the end of entry.S 2011-08-31 05:38:05 -04:00
Robert Morris 5e08357827 enterpgdir -> entrypgdir 2011-08-30 20:50:19 -04:00
Frans Kaashoek 1ddfbbb194 Revert "Introduce and use sleeplocks instead of BUSY flags"
My changes have a race with re-used bufs and the code doesn't seem to get shorter
Keep the changes that fixed ip->off race

This reverts commit 3a5fa7ed90.

Conflicts:

	defs.h
	file.c
	file.h
2011-08-29 17:18:40 -04:00
Austin Clements 22f7db5336 Renumber I_VALID since I_BUSY is gone 2011-08-29 16:14:44 -04:00
Austin Clements 920b7b44b5 dir-locals.el to set style in Emacs 2011-08-29 16:12:17 -04:00
Austin Clements a7061b4f97 Style nits; indentation and tabs 2011-08-29 16:12:01 -04:00
Frans Kaashoek 16f205b5c9 Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6 2011-08-26 10:10:37 -04:00
Frans Kaashoek 3a5fa7ed90 Introduce and use sleeplocks instead of BUSY flags
Remove I_BUSY, B_BUSY, and intrans defs and usages
One spinlock per buf to avoid ugly loop in bget
fix race in filewrite (don't update f->off after releasing lock)
2011-08-26 10:08:29 -04:00
Robert Morris 41911afa45 segment register -> segment descriptor 2011-08-26 06:47:13 -04:00
Frans Kaashoek 8a9b6dbd44 Make cross reference with text work 2011-08-25 14:39:09 -04:00
Frans Kaashoek 6f2327580f Eliminate USERTOP; no use for it. 2011-08-24 10:24:40 -04:00
Frans Kaashoek 194f8bf739 A comment 2011-08-22 20:07:18 -04:00
Frans Kaashoek d10d324e79 Remove sys_init syscall
Invoke initlog from forkret on first user process
2011-08-22 20:05:15 -04:00
Frans Kaashoek 39f8cc56d3 Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6 2011-08-21 21:14:42 -04:00
Frans Kaashoek 3682474f77 delete dead code 2011-08-21 21:14:29 -04:00
Robert Morris 327cc21fba make dirlookup and dirlink more similar 2011-08-19 13:30:57 -04:00
Frans Kaashoek cd3d739e6f bootloader reads into a physical address (not a virtual address) 2011-08-17 20:52:28 -04:00
Frans Kaashoek fa81545f1c Make elf proghdr fields match what objdump prints 2011-08-17 20:23:36 -04:00
Frans Kaashoek 5f069dcf2f Switch back to #define for PHYSTOP. Using the E820 to retrieve the memory map is too complicated (must be done in 16-bit real-mode, probably enlarged bootblock beyond 512 bytes, and a #define requires less explanation). 2011-08-16 20:23:17 -04:00
Frans Kaashoek c3dcf47966 Clean up memlayout.h
Get rid of last instances of linear address and "la"
Get ready for detecting physical memory dynamically
2011-08-16 15:47:22 -04:00
Frans Kaashoek 427958cb71 Update make clean 2011-08-15 20:32:04 -04:00
Frans Kaashoek eeea49e8d5 Update list of files to include in printout 2011-08-15 20:28:28 -04:00
Frans Kaashoek d9818bdd7d Make Austin happier
2011
2011-08-15 20:21:14 -04:00
Frans Kaashoek a4b213cf49 Avoid "boot" in xv6 2011-08-15 20:11:13 -04:00
Frans Kaashoek 9449646853 Use 4Mbyte pages during boot 2011-08-15 17:41:58 -04:00
Austin Clements 843eecfcd0 Only commit log to disk if something was written in to it.
Without this, every write to the console results in log writes.
2011-08-15 14:12:35 -04:00
Robert Morris 7f1718ca33 Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6 2011-08-15 12:44:41 -04:00
Robert Morris 5053dd6a6d avoid deadlock by calling begin_trans() before locking any inodes 2011-08-15 12:44:20 -04:00
Frans Kaashoek c60a3551c2 Separate more clearly bootloader from xv6 by renaming multiboot.S to entry.S etc.
Maybe the string boot shouldn't appear in xv6 code?
2011-08-15 12:02:59 -04:00