summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-09-02ack xiFrans Kaashoek1-2/+2
2016-09-02Merge branch 'master' of g.csail.mit.edu:xv6-devFrans Kaashoek3-3/+9
2016-09-02APIC IDs may not be consecutive and start from zero, so we cannot really use itFrans Kaashoek6-18/+26
as a direct index into cpus. Record apicid in struct cpu and have cpunum() look for it. Replace cpu->id with cpunum() everywhere, and replace cpu->id with cpu->apicid. Thanks to Xi Wang.
2016-09-02comment about sched() saving/restoring cpu->intenaRobert Morris2-2/+8
2016-09-01curproc -> proc in a commentRobert Morris1-1/+1
2016-08-26better commentFrans Kaashoek1-1/+3
2016-08-26ackFrans Kaashoek1-2/+2
2016-08-26set iomb to forbid i/o instructions from user spaceFrans Kaashoek2-0/+33
add to test that they indeed trap in user space thanks to [email protected] and [email protected]
2016-08-25xFrans Kaashoek1-6/+6
2016-08-25Remove trailing white space with:Frans Kaashoek32-116/+116
for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick)
2016-08-25ack mikecatFrans Kaashoek1-2/+2
2016-08-25add check for wrapping of address + size in exec()MikeCAT1-0/+2
2016-08-25add alignment check of virtual address to exec()MikeCAT1-0/+2
2016-08-24p2v -> P2VRobert Morris5-26/+19
2016-08-19xFrans Kaashoek1-6/+6
2016-08-18Coding style (thanks to phf).Frans Kaashoek1-5/+5
2016-08-18Fixed QEMU command line avoids raw image warning.Peter H. Froehlich1-1/+1
2016-08-18It will be for 2016Frans Kaashoek1-2/+2
2016-08-18Update based on a scan of my 6828 folderFrans Kaashoek1-3/+6
2016-08-18Removed useless variable.Peter H. Froehlich1-4/+0
2016-08-18Again, QEMU command line to avoid image warning.Peter H. Froehlich1-1/+1
2016-08-18Remove unused variable, nits.Peter H. Froehlich1-6/+5
2016-08-18Removed useless function and prototypes.Peter H. Froehlich2-11/+1
2016-08-18Thanks to Warren Toomey for RDMUL and WRMUL.Frans Kaashoek1-1/+1
2016-08-18Small change to support RWMUL and WRMUL. Now xv6 truly works with a block sizeFrans Kaashoek1-3/+7
that is a multiple of the sector size.
2016-08-13hold ptable.lock for the entire process creationRobert Morris2-9/+15
however, processes still modify their own p->* without locking
2016-08-12separate atomic test-and-set from memory barrier.Robert Morris1-12/+14
* use xchg only for its atomicness. * use __sync_synchronize() for both CPU and compiler barrier.
2016-08-11nothing muchRobert Morris3-2/+3
2016-08-11main commentsRobert Morris1-7/+6
2016-08-10nitsRobert Morris2-2/+2
2016-08-10more comments in entryother.SRobert Morris2-15/+22
2016-08-10even more explicit that entry.S is linked into kernel, unlike bootasm.S.Robert Morris2-1/+5
2016-08-10tiny clarifications to some gdt code.Robert Morris3-5/+5
2016-08-08shell nitsRobert Morris2-4/+8
fix Regehr complaint
2015-11-15nitsFrans Kaashoek1-8/+6
2015-11-15Remove console input.lockNathaniel Wesley Filardo1-10/+13
Use cons.lock for everything. This eliminates the possibility that two CPUS independently, simultaneously manipulate the CRTC in cgaputc.
2015-11-15Add sanity check panic for CRTC interactionsNathaniel Wesley Filardo1-0/+3
2015-11-15Merge pull request #3 from beordle/masterkaashoek1-1/+1
Fix comments
2015-11-15Merge pull request #5 from kehao95/masterkaashoek1-1/+1
Update URL for 2014
2015-11-14Update URL for 2014kehao951-1/+1
2015-09-18Fix commentsJindong Zhang1-1/+1
2015-08-12Fixed broken build on Arch LinuxAyan Shafqat1-0/+2
2015-06-30coding style (per Jeremías Feltan <[email protected]>)Frans Kaashoek2-7/+7
2015-06-27Update memide to reflect recent changes to fs and bufFrans Kaashoek1-2/+3
2015-06-27Pick up where i left off in april:Frans Kaashoek7-45/+47
- move log into metadata part of disk, so that marking that the log's blocks are in use falls out for free - superblock describes the whole disk (sizes and offets) - sizes and offsets are computed in one place (mkfs) and the rest of the code refers to the superblock for these values, instead of recomputing them.
2015-04-10One ide command for nsector_per_block generates nsector_per_block interrupts,Frans Kaashoek1-1/+1
instead of 1. ideintr() should wait for nsector_per_block interrupts before waking up the reader; now it wakes up the reader after 1 interrupt, which apparently means that the first sector is available of the command instead of all. For now keep BSIZE to 512.
2015-04-10check blockno passed to idestartFrans Kaashoek3-9/+9
2015-04-03Disentangle block size from the disk's sector size. Set block size to 1024 ↵Frans Kaashoek11-86/+91
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-03-24Fix missing NUL-terminator in grepAustin Clements1-1/+2
Currently, grep read()s into a buffer and then uses the buffer as a string. Since there's no NUL-terminator, this can cause it to falsely identify line breaks and matches from leftover data on earlier lines and, if a line fills up the entire buffer, to read past the end of the buffer. Fix this by NUL-terminating any data returned by read(). Thanks to Keiichi Watanabe for the report.
2015-02-19fix buf where concurrent fs syscalls race on log entriesCody Cutler1-0/+2