Commit graph

718 commits

Author SHA1 Message Date
Frans Kaashoek a56c8d609b One definition of several macros and constants 2011-08-08 13:30:08 -04:00
Frans Kaashoek 11b7438b10 Speedup sbrk tst a bit (forking 100Mbyte processes is slow) 2011-08-08 09:20:29 -04:00
Frans Kaashoek 6479766334 Adjust sbrk test for large user address spaces
All tests pass
2011-08-07 23:03:48 -04:00
Frans Kaashoek 67d4254d15 oops 2011-08-07 12:30:34 -04:00
Frans Kaashoek 547c28fc1e Don'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)
2011-07-31 21:27:02 -04:00
Frans Kaashoek 9aa0337dc1 Map kernel high
Very important to give qemu memory through PHYSTOP :(
2011-07-29 07:31:27 -04:00
Frans Kaashoek dccb915282 Merge commit 'origin/master' into page 2011-07-27 20:49:45 -04:00
Frans Kaashoek 13a96baefc Dirt simple logging
Passes usertests and stressfs
Seems to recover correctly in a number of simple cases
2011-07-27 20:35:46 -04:00
Austin Clements 97657d703f Add -fno-omit-frame-pointer to compile flags.
At some point between gcc 4.4 and 4.6, omitting the frame pointer
became default if any -O is specified.  getcallerpcs relies on the
frame pointer, so bring it back.
2011-06-24 14:22:19 -04:00
Nickolai Zeldovich 96b7da5f03 do not run past the end of the disk!
[ cherry-picked de6075ff0978108daea1d658425bcb37663a98a0 ]

Conflicts:

	fs.c
2011-06-24 05:26:57 -04:00
Frans Kaashoek f70ef994dc Russ's fix for panic remap 2011-04-28 08:01:36 -04:00
Russ Cox ae603ff5e7 rebuild xv6-rev5.tar.gz
does not affect line numbers
2011-02-28 09:32:54 -05:00
Russ Cox c5f5387351 fixes from Peter Froehlich 2011-02-28 09:32:20 -05:00
Russ Cox a6cd7509c4 web: rev5 2011-02-19 21:21:49 -05:00
Russ Cox 688b5c03dd updated book pdfs 2011-02-19 21:19:58 -05:00
Russ Cox cf4b1ad90b xv6: formatting, cleanup, rev5 (take 2) 2011-02-19 21:17:55 -05:00
Russ Cox 9c4fe7ba10 xv6: formatting, cleanup, rev5 2011-02-19 21:16:54 -05:00
Russ Cox 97b21b5838 xv6: refresh from 2010 page 2011-02-19 10:36:14 -05:00
Russ Cox 08864affaa xv6: link to xv6-rev4 2011-02-19 10:23:19 -05:00
Russ Cox 4fa8614db0 missing file memide.c 2011-01-11 13:54:23 -05:00
Russ Cox 417c37115e more trivial cleanup 2011-01-11 13:51:40 -05:00
Russ Cox 89bfdd4db1 multiboot support and memory-only (no disk) kernel 2011-01-11 13:27:45 -05:00
Russ Cox af6a6a4775 mp: do not panic on surprising hw 2011-01-11 13:16:28 -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
Russ Cox 240679608c mkfs: avoid clash with system struct stat 2011-01-10 10:43:40 -05:00
Russ Cox e92fd6142d mkfs: avoid out of bounds access to sb in wsect 2011-01-02 17:59:57 -05:00
Robert Morris 2ea6c764c3 even more fabulous exec 2010-09-29 14:12:26 -04:00
Robert Morris 06feabecee check exec() arg length
fix double iunlockput
2010-09-27 16:17:57 -04:00
Robert Morris 4655d42e3b copyout() copies data to a va in a pagetable, for exec() &c
usertest that passes too many arguments, break exec
2010-09-27 16:14:33 -04:00
Robert Morris a9183883b8 map kernel instructions r/o 2010-09-20 06:00:22 -04:00
Robert Morris 26d11ee8dc Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6 2010-09-19 13:48:22 -04:00
Robert Morris 05d66b0629 my comment is wrong, exec handles BSS fine 2010-09-19 13:47:52 -04:00
Robert Morris 4587b35847 exec questions 2010-09-19 07:18:42 -04:00
Austin Clements 4c274cef74 Simplify boot loader by removing some JOS'isms 2010-09-15 16:15:07 -04:00
Robert Morris faad047ab2 change 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()
2010-09-13 15:34:44 -04:00
Austin Clements 124fe7e457 Rev 4 2010-09-03 15:47:28 -04:00
Austin Clements cc21c06e3b Update example in TOC footer 2010-09-02 19:03:48 -04:00
Austin Clements 588644f472 Consistent style in defs.h 2010-09-02 19:01:25 -04: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 5bf11c50b5 Get rid of the blank page in picirq.c. It misaligs things now. 2010-09-02 18:36:06 -04:00
Austin Clements 79cd8b3eed Simplify allocuvm/deallocuvm to operate in a contiguous memory model. This makes their interface match up better with proc->sz and also simplifies the callers (it even gets the main body of exec on one page). 2010-09-02 18:28:36 -04:00
Austin Clements d49d31381d Nits 2010-09-02 17:03:19 -04:00
Austin Clements 9a4670a138 Comment inituvm and loaduvm 2010-09-02 16:39:55 -04:00
Austin Clements 93a1e4cb07 Fix comment capitalization 2010-09-02 16:36:38 -04:00
Austin Clements f25a3f9a41 Rearrange vm.c so it's in logical order and prints nicely. Shorten a few functions in uninteresting ways to make them fit. 2010-09-02 16:23:15 -04:00
Austin Clements f53e6110be Simplify inituvm and userinit by assuming initcode fits on a page 2010-09-02 15:42:25 -04:00
Austin Clements b3cfd7fc37 Simplify freevm using deallocuvm 2010-09-02 15:18:19 -04:00
Austin Clements c7c21467c3 Oops. Broke the build when I rearranged proc.c 2010-09-02 14:30:06 -04:00
Austin Clements d599aa2e40 Remove unused nop_pause function. 2010-09-02 14:08:45 -04:00