summaryrefslogtreecommitdiff
path: root/bootmain.c
AgeCommit message (Collapse)Author
2019-06-05start at support for multiple CPUsRobert Morris
2016-08-25Remove trailing white space with:Frans Kaashoek
for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick)
2015-04-03Disentangle block size from the disk's sector size. Set block size to 1024 ↵Frans Kaashoek
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.
2011-09-04Make the ELF entry point a physical addressAustin Clements
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-08-31move the kernel to 0x80000000Robert Morris
2011-08-17bootloader reads into a physical address (not a virtual address)Frans Kaashoek
2011-08-17Make elf proghdr fields match what objdump printsFrans Kaashoek
2011-07-29Map kernel highFrans Kaashoek
Very important to give qemu memory through PHYSTOP :(
2011-01-11make new code like old codeRuss Cox
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.
2010-09-15Simplify boot loader by removing some JOS'ismsAustin Clements
2009-03-08xv6: boot loader adjustmentsrsc
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
2007-09-15fix commentsrtm
2007-08-28fix offsetsrsc
2007-08-28more cmain -> bootmainrsc
2007-08-28cmain -> bootmainrsc
2007-08-27cut bootmain to 1 sheetrsc
2007-08-24nitsrsc
2007-08-24add missing iput() at end of _namei()rtm
2007-08-22PDF at http://am.lcs.mit.edu/~rsc/xv6.pdfrsc
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
2006-09-06wrap long linesrsc
2006-09-06for vs whilersc
2006-09-06no /* */ commentsrsc
2006-09-06standardize various * conventionsrsc
2006-09-06spacing fixes: no tabs, 2-space indents (for rtm)rsc
2006-07-20uint32_t -> uint &crtm
2006-07-17standarize on unix-like lowercase struct namesrsc
2006-07-17add uint and standardize on typedefs instead of unsignedrsc
2006-07-16standardize on not using foo_ prefix in struct foorsc
2006-07-16standardize on #include "foo" not <foo>rsc
2006-06-12importrtm