1eadf4a8fcMerge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Robert Morris
2011-09-01 13:26:03 -04:00
371ab7fa96inaccessible page under the user stack page, to help exec deal w/ too-large args
Robert Morris
2011-09-01 13:25:34 -04:00
6bb9221395Fix layout
Frans Kaashoek
2011-09-01 13:18:02 -04:00
e04329aae8Have one definition of kernel stack size
Frans Kaashoek
2011-09-01 12:18:43 -04:00
62e3b8a92cMerge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Robert Morris
2011-09-01 12:03:49 -04:00
5a23692444fix usertests to correctly test what happens when you call exec() with arguments that don't fit on a single page.
Robert Morris
2011-09-01 12:02:49 -04:00
d0f3efca65Use stosl in memset; makes boot time bearable
Austin Clements
2011-09-01 10:41:21 -04:00
e25b74ca80Fix layout issues for printed version
Frans Kaashoek
2011-09-01 10:25:20 -04:00
15997d5849move the kernel to 0x80000000
Robert Morris
2011-08-31 09:48:52 -04:00
5c292b3d71simplify the end of entry.S
Robert Morris
2011-08-31 05:38:05 -04:00
5e08357827enterpgdir -> entrypgdir
Robert Morris
2011-08-30 20:50:19 -04:00
1ddfbbb194Revert "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
Frans Kaashoek
2011-08-29 17:18:40 -04:00
22f7db5336Renumber I_VALID since I_BUSY is gone
Austin Clements
2011-08-29 16:14:44 -04:00
920b7b44b5dir-locals.el to set style in Emacs
Austin Clements
2011-08-29 16:12:17 -04:00
a7061b4f97Style nits; indentation and tabs
Austin Clements
2011-08-29 16:12:01 -04:00
16f205b5c9Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Frans Kaashoek
2011-08-26 10:10:37 -04:00
3a5fa7ed90Introduce 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)
Frans Kaashoek
2011-08-26 10:08:29 -04:00
41911afa45segment register -> segment descriptor
Robert Morris
2011-08-26 06:47:13 -04:00
8a9b6dbd44Make cross reference with text work
Frans Kaashoek
2011-08-25 14:39:09 -04:00
6f2327580fEliminate USERTOP; no use for it.
Frans Kaashoek
2011-08-24 10:24:40 -04:00
194f8bf739A comment
Frans Kaashoek
2011-08-22 20:07:18 -04:00
d10d324e79Remove sys_init syscall Invoke initlog from forkret on first user process
Frans Kaashoek
2011-08-22 20:05:15 -04:00
39f8cc56d3Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Frans Kaashoek
2011-08-21 21:14:42 -04:00
3682474f77delete dead code
Frans Kaashoek
2011-08-21 21:14:29 -04:00
327cc21fbamake dirlookup and dirlink more similar
Robert Morris
2011-08-19 13:30:57 -04:00
cd3d739e6fbootloader reads into a physical address (not a virtual address)
Frans Kaashoek
2011-08-17 20:52:28 -04:00
fa81545f1cMake elf proghdr fields match what objdump prints
Frans Kaashoek
2011-08-17 20:23:36 -04:00
5f069dcf2fSwitch 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).
Frans Kaashoek
2011-08-16 20:23:17 -04:00
c3dcf47966Clean up memlayout.h Get rid of last instances of linear address and "la" Get ready for detecting physical memory dynamically
Frans Kaashoek
2011-08-16 15:47:22 -04:00
427958cb71Update make clean
Frans Kaashoek
2011-08-15 20:32:04 -04:00
eeea49e8d5Update list of files to include in printout
Frans Kaashoek
2011-08-15 20:28:28 -04:00
d9818bdd7dMake Austin happier 2011
Frans Kaashoek
2011-08-15 20:21:14 -04:00
a4b213cf49Avoid "boot" in xv6
Frans Kaashoek
2011-08-15 20:11:13 -04:00
9449646853Use 4Mbyte pages during boot
Frans Kaashoek
2011-08-15 17:41:58 -04:00
843eecfcd0Only commit log to disk if something was written in to it.
Austin Clements
2011-08-15 14:11:22 -04:00
7f1718ca33Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Robert Morris
2011-08-15 12:44:41 -04:00
5053dd6a6davoid deadlock by calling begin_trans() before locking any inodes
Robert Morris
2011-08-15 12:44:20 -04:00
c60a3551c2Separate more clearly bootloader from xv6 by renaming multiboot.S to entry.S etc. Maybe the string boot shouldn't appear in xv6 code?
Frans Kaashoek
2011-08-15 12:02:59 -04:00
c95ce31c59Oops
Frans Kaashoek
2011-08-12 12:02:17 -04:00
e0d1ba0d74Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Robert Morris
2011-08-12 09:26:23 -04:00
2e59046362log write() data usertest for big write()s push begin_trans/commit_trans down into syscalls
Robert Morris
2011-08-12 09:25:39 -04:00
e577a62f0dSome comments
Frans Kaashoek
2011-08-12 07:31:52 -04:00
bd71a45046Make AP processors boot using bootpgdir Remove device mapping from bootpgdir Remove unnecessary vmenable Set CPUS back to 2 in Makefile Passes all usertests
Frans Kaashoek
2011-08-11 12:25:10 -04:00
673b739d31One more low address
Frans Kaashoek
2011-08-09 23:22:48 -04:00
8a9933a200Tiny bit of cleanup
Frans Kaashoek
2011-08-09 21:56:43 -04:00
22c73411caShorten boot assembly
Frans Kaashoek
2011-08-09 21:51:17 -04:00
5460667c9cx
Frans Kaashoek
2011-08-09 21:49:13 -04:00
832af025a3Remove jmpkstack
Frans Kaashoek
2011-08-09 21:47:40 -04:00
66ba8079c7Use static page table for boot, mapping first 4Mbyte; no more segment trick Allocate proper kernel page table immediately in main using boot allocator Remove pginit Simplify address space layout a tiny bit More to come (e.g., superpages to simplify static table)
Frans Kaashoek
2011-08-09 21:37:35 -04:00
3a03810643Use kernel virtual addresses for BIOS memory, etc.
Frans Kaashoek
2011-08-09 21:33:59 -04:00
b23d8329e7Allow gas to use / as divide (instead of comment) Maybe not necessary, but don't want to waste time figuring this out again
Frans Kaashoek
2011-08-09 16:09:15 -04:00
a56c8d609bOne definition of several macros and constants
Frans Kaashoek
2011-08-08 13:30:08 -04:00
11b7438b10Speedup sbrk tst a bit (forking 100Mbyte processes is slow)
Frans Kaashoek
2011-08-08 09:20:29 -04:00
6479766334Adjust sbrk test for large user address spaces All tests pass
Frans Kaashoek
2011-08-07 23:03:48 -04:00
67d4254d15oops
Frans Kaashoek
2011-08-07 12:30:34 -04:00
547c28fc1eDon't map IO space in the user part of the address space Passes all tests now (but need to update usertests to allow for more than 640k)
Frans Kaashoek
2011-07-31 21:27:02 -04:00
9aa0337dc1Map kernel high Very important to give qemu memory through PHYSTOP :(
Frans Kaashoek
2011-07-29 07:31:27 -04:00
dccb915282Merge commit 'origin/master' into page
Frans Kaashoek
2011-07-27 20:49:45 -04:00
13a96baefcDirt simple logging Passes usertests and stressfs Seems to recover correctly in a number of simple cases
Frans Kaashoek
2011-07-27 20:35:46 -04:00
97657d703fAdd -fno-omit-frame-pointer to compile flags.
Austin Clements
2011-06-24 14:20:51 -04:00
96b7da5f03do not run past the end of the disk! [ cherry-picked de6075ff0978108daea1d658425bcb37663a98a0 ]
Nickolai Zeldovich
2011-06-24 05:26:57 -04:00
f70ef994dcRuss's fix for panic remap
Frans Kaashoek
2011-04-28 08:01:36 -04:00
4655d42e3bcopyout() copies data to a va in a pagetable, for exec() &c usertest that passes too many arguments, break exec
Robert Morris
2010-09-27 16:14:33 -04:00
a9183883b8map kernel instructions r/o
Robert Morris
2010-09-20 06:00:22 -04:00
26d11ee8dcMerge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Robert Morris
2010-09-19 13:48:22 -04:00
05d66b0629my comment is wrong, exec handles BSS fine
Robert Morris
2010-09-19 13:47:52 -04:00
4587b35847exec questions
Robert Morris
2010-09-19 07:18:42 -04:00
4c274cef74Simplify boot loader by removing some JOS'isms
Austin Clements
2010-09-15 16:15:07 -04:00
faad047ab2change some comments, maybe more informative delete most comments from bootother.S (since copy of bootasm.S) ksegment() -> seginit() move more stuff from main() to mainc()
Robert Morris
2010-09-13 15:34:44 -04:00