Commit graph

29 commits

Author SHA1 Message Date
Frans Kaashoek 7894fcd217 Remove trailing white space with:
for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done
(Thanks to Nicolás Wolovick)
2016-08-25 09:13:00 -04:00
Frans Kaashoek c24ac5d763 Disentangle block size from the disk's sector size. Set block size to 1024 to show
that they can be different.  Clean up mkfs, simplifying specifying fs parameters,
remove some redundancy between fs and mkfs, and fix disk layout bugs. Call blocks
in the file system blocks instead of sectors.  Passes usertests for different
block sizes.
2015-04-03 08:22:02 -04:00
Austin Clements 2fc6c35b2f Make the ELF entry point a physical address
This way, the bootloader doesn't have to translate the entry point.
This also makes xv6 multiboot-compliant and follows the convention
used by Linux.
2011-09-04 15:51:46 -04:00
Robert Morris 15997d5849 move the kernel to 0x80000000 2011-08-31 09:48:52 -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 9aa0337dc1 Map kernel high
Very important to give qemu memory through PHYSTOP :(
2011-07-29 07:31:27 -04: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
Austin Clements 4c274cef74 Simplify boot loader by removing some JOS'isms 2010-09-15 16:15:07 -04: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
rtm 411ee74127 fix comments 2007-09-15 20:05:47 +00:00
rsc 3e1eaf226d fix offsets 2007-08-28 18:04:43 +00:00
rsc a491dba00c more cmain -> bootmain 2007-08-28 18:02:49 +00:00
rsc c35c064e04 cmain -> bootmain 2007-08-28 13:01:10 +00:00
rsc 8e67005320 cut bootmain to 1 sheet 2007-08-27 12:48:03 +00:00
rsc 97ac612fb1 nits 2007-08-24 20:28:08 +00:00
rtm 2036534834 add missing iput() at end of _namei() 2007-08-24 14:56:17 +00:00
rsc eaea18cb9c PDF at http://am.lcs.mit.edu/~rsc/xv6.pdf
Various changes made while offline.

 + bwrite sector argument is redundant; use b->sector.
 + reformatting of files for nicer PDF page breaks
 + distinguish between locked, unlocked inodes in type signatures
 + change FD_FILE to FD_INODE
 + move userinit (nee proc0init) to proc.c
 + move ROOTDEV to param.h
 + always parenthesize sizeof argument
2007-08-22 06:01:32 +00:00
rsc 0cfc7290e8 wrap long lines 2006-09-06 19:08:14 +00:00
rsc db8fb62e4d for vs while 2006-09-06 18:47:51 +00:00
rsc f552738889 no /* */ comments 2006-09-06 17:50:20 +00:00
rsc 9e9bcaf143 standardize various * conventions 2006-09-06 17:27:19 +00:00
rsc a650c606fe spacing fixes: no tabs, 2-space indents (for rtm) 2006-09-06 17:04:06 +00:00
rtm 2927081628 uint32_t -> uint &c 2006-07-20 09:07:53 +00:00
rsc b5f17007f4 standarize on unix-like lowercase struct names 2006-07-17 01:58:13 +00:00
rsc b5ee516575 add uint and standardize on typedefs instead of unsigned 2006-07-17 01:52:13 +00:00
rsc ef2bd07ae4 standardize on not using foo_ prefix in struct foo 2006-07-16 15:41:47 +00:00
rsc b53f99d0d2 standardize on #include "foo" not <foo> 2006-07-16 15:40:05 +00:00
rtm 55e95b16db import 2006-06-12 15:22:12 +00:00