0754d21c86stricter log consumption by write()
Robert Morris
2017-10-24 08:49:31 -04:00
1ab23170a1improve swtch comment
Robert Morris
2017-10-08 07:12:31 -04:00
4638cabf8cfix runoff complaints about pagination and long lines
Robert Morris
2017-08-29 14:11:59 -04:00
164f4bae54thx
Frans Kaashoek
2017-08-10 07:09:53 -04:00
3e392c7288Update comment to reflect xv6 doesn't have per-cpu segments anymore
Frans Kaashoek
2017-08-09 08:07:55 -04:00
6389d9d410nothing much
Robert Morris
2017-08-09 14:16:55 -04:00
4f14d8d1e5Commit to running on an SMP (perhaps with only 1 core). Remove most code from picirq.c and remove timer.c completely. Update runoff.list.
Frans Kaashoek
2017-08-09 07:43:06 -04:00
70705966adcomment fixes
Robert Morris
2017-08-09 06:54:45 -04:00
da3b931ddbThanks Anton Burtsev <aburtsev@uci.edu>
Frans Kaashoek
2017-08-08 19:42:51 -04:00
a4ee6f7de3fix iput() to more obviously avoid deadlock
Robert Morris
2017-08-08 14:19:54 -04:00
1c7aa96005a little more lock documentation
Robert Morris
2017-08-08 14:12:25 -04:00
70d912b332protect ip->valid and ip->nlink with sleep lock in iput()
Robert Morris
2017-08-08 13:48:48 -04:00
3375df5061change ip->flags&I_VALID to ip->valid
Robert Morris
2017-08-08 13:34:13 -04:00
14270288b7Merge branch 'master' of g.csail.mit.edu:xv6-dev
Robert Morris
2017-08-08 13:27:06 -04:00
aba8423c4afrans' fixes to iput()
Robert Morris
2017-08-08 13:26:57 -04:00
9cec455b17fs comment nits
Robert Morris
2017-08-08 13:24:38 -04:00
825ce074b1Remove some debugging statements
Frans Kaashoek
2017-08-07 15:15:18 -04:00
61cb32aa9bMerge branch 'nogs'
Frans Kaashoek
2017-08-07 14:35:05 -04:00
61f26e3c97Fix typo in dirlookup
Grant Wu
2017-04-26 19:56:51 -07:00
1fb2ea8890Update LICENSE
Alice Ferrazzi
2017-02-27 13:12:59 +09:00
03b3086327Free pgdir in setupkvm in case of mappages failure
Saarett
2017-02-05 12:44:56 +02:00
c9fa90f7e5A tiny bit of clean up (e.g., move code searching cpu array from lapic.c into mycpu() in proc.c.
Frans Kaashoek
2017-02-01 20:36:41 -05:00
2e2d14c235use panic
Frans Kaashoek
2017-02-01 19:21:43 -05:00
7c00ce8110shorten comment
Frans Kaashoek
2017-02-01 19:18:47 -05:00
ed396c068bEliminate code for gs trick to track per-cpu state. We rely on lapiccpunum() to find a per-cpu id with which we locate a cpu's cpu struct.
Frans Kaashoek
2017-02-01 18:04:13 -05:00
fbb4c09444Read curproc from cpu structure, but be careful because after a schedule event myproc() points to a different thread.
Frans Kaashoek
2017-01-31 20:21:14 -05:00
abf847a083Start of an experiment to remove the use of gs for cpu local variables.
Frans Kaashoek
2017-01-31 17:47:16 -05:00
59cdd6c63bwolfgang keller
Frans Kaashoek
2017-01-30 20:24:13 -05:00
b4f2235e43Fix spelling Gaoron.
Frans Kaashoek
2017-01-30 20:11:23 -05:00
d57d37eb87Thanks to Wolfgang Keller <nubok@users.noreply.github.com>
Frans Kaashoek
2017-01-30 20:09:54 -05:00
c383612a7dThanks to Wolfgang Keller <nubok@users.noreply.github.com>
Frans Kaashoek
2017-01-30 20:07:42 -05:00
1772853d39Add support for qemu-system-x86_64 in 64bit hosts
Antonio Gutierrez
2016-12-02 20:17:54 +01:00
906610efc9Thanks to Jeehoon Kang <jeehoon.kang@sf.snu.ac.kr>
Frans Kaashoek
2017-01-30 20:01:33 -05:00
8d1f99637aFix long-standing switchuvm() inconsistency.
Peter Froehlich
2016-12-22 20:26:37 -05:00
e916d668f7Fix unsigned conversion bug.
Peter H. Froehlich
2016-09-27 16:58:29 -04:00
462930727fCody
Frans Kaashoek
2017-01-30 09:38:19 -05:00
ffe444926efix possible memory leak in deallocuvm
Cody Cutler
2016-09-26 12:21:01 -04:00
91fd3470b0Fixed broken build on newer gold linker with NaCl support
Icenowy Zheng
2016-04-09 09:38:40 +08:00
907f23a5bbAdd mikecat's argp test
Frans Kaashoek
2016-09-26 07:54:02 -04:00
2a675089b1fix memory region validation in argptr()
MikeCAT
2015-12-19 22:52:11 +09:00
0df5f11baeTypo (Thanks to Austin Liew)
Frans Kaashoek
2016-09-25 08:27:26 -04:00
7ddba7a636Merge branch 'master' of g.csail.mit.edu:xv6-dev
Frans Kaashoek
2016-09-19 07:02:08 -04:00
89826f41bdCheck result of write (thans to Alexander Kapshuk <alexander.kapshuk@gmail)
Frans Kaashoek
2016-09-19 07:01:30 -04:00
Fix a small README typo
Tej Chajed
2016-09-16 09:11:23 -04:00
912575ad12Remove left-over print statements
Frans Kaashoek
2016-09-15 19:16:30 -04:00
d6dc5bcb2dMerge branch 'master' of g.csail.mit.edu:xv6-dev
Robert Morris
2016-09-15 12:56:17 -04:00
aeaa308943change allocproc() back to acquiring the ptable.lock. fix bugs where caller incorrectly released lock on error return path.
Robert Morris
2016-09-15 12:12:05 -04:00
469aa8b9b3xx
Robert Morris
2016-09-15 12:01:52 -04:00
33188666daDelete two left-over print statements
Frans Kaashoek
2016-09-14 21:13:09 -04:00
6cec0211d8Update comment a bit.
Frans Kaashoek
2016-09-14 13:01:53 -04:00
da91a3a408Add sleeplock.[ch] to listing
Frans Kaashoek
2016-09-14 08:43:57 -04:00
e85cb90cbfone more BUSY
Frans Kaashoek
2016-09-13 14:51:44 -04:00
564a1cf0cbsleeplock files
Frans Kaashoek
2016-09-11 21:01:24 -04:00
dec637bc59Replace I_BUSY with sleep locks
Frans Kaashoek
2016-09-11 20:59:57 -04:00
2adb7c21dcMove retry loop/sleep/wakeup in bio.c into sleeping locks
Frans Kaashoek
2016-09-11 20:17:22 -04:00
6670d3b5e0Straight replacement of B_BUSY with a sleeping lock.
Frans Kaashoek
2016-09-11 17:24:04 -04:00
551c2f3576Merge branch 'master' of g.csail.mit.edu:xv6-dev
Frans Kaashoek
2016-09-08 21:20:26 -04:00
1b8ccf9482x
Frans Kaashoek
2016-09-08 21:20:17 -04:00
34c2efc1d0use asm() for lock release, not a C assignment
Robert Morris
2016-09-08 14:45:20 -04:00
d63ac118e8this might fix the reported deadlock, though I can't reproduce it.
Robert Morris
2016-09-08 14:22:38 -04:00
761ea5471fBe a bit more explicit what kind of suggestions are are interested.
Frans Kaashoek
2016-09-08 13:09:09 -04:00
5bf3fbee00Make runoff happy
Frans Kaashoek
2016-09-02 15:27:28 -04:00
b7fed77b7bFix a few lines that runoff is complaining about that they are too long
Frans Kaashoek
2016-09-02 14:59:00 -04:00
5f03799f84ack xi
Frans Kaashoek
2016-09-02 08:43:33 -04:00
b8fd4cba13Merge branch 'master' of g.csail.mit.edu:xv6-dev
Frans Kaashoek
2016-09-02 08:36:14 -04:00
ae15515d80APIC IDs may not be consecutive and start from zero, so we cannot really use it 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.
Frans Kaashoek
2016-09-02 08:31:13 -04:00
bc8221a59ccomment about sched() saving/restoring cpu->intena
Robert Morris
2016-09-02 05:40:54 -04:00
4b2152cc2dcurproc -> proc in a comment
Robert Morris
2016-09-01 17:21:37 -04:00
37939f24c2better comment
Frans Kaashoek
2016-08-26 08:46:13 -04:00
27ff70dc08ack
Frans Kaashoek
2016-08-26 08:22:24 -04:00
aff0c8d5c7set iomb to forbid i/o instructions from user space add to test that they indeed trap in user space thanks to pablogventura@gmail.com and nwolovick@gmail.com
Frans Kaashoek
2016-08-26 08:20:11 -04:00
745a4d31a6x
Frans Kaashoek
2016-08-25 09:14:52 -04:00
7894fcd217Remove trailing white space with: for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick)
Frans Kaashoek
2016-08-25 09:13:00 -04:00
6de6a3c952ack mikecat
Frans Kaashoek
2016-08-25 07:12:33 -04:00
5625ae4973add check for wrapping of address + size in exec()
MikeCAT
2015-12-20 00:04:52 +09:00
67a7f9597eadd alignment check of virtual address to exec()
MikeCAT
2015-12-19 23:43:56 +09:00
a7c03bd914p2v -> P2V
Robert Morris
2016-08-24 13:40:06 -04:00
7a77375d64x
Frans Kaashoek
2016-08-19 07:20:08 -04:00
1fc87f367cCoding style (thanks to phf).
Frans Kaashoek
2016-08-18 21:02:05 -04:00
5faed8ba64Fixed QEMU command line avoids raw image warning.
Peter H. Froehlich
2015-09-26 17:38:04 -04:00
0f3d9d9d68It will be for 2016
Frans Kaashoek
2016-08-18 14:00:48 -04:00
987064cb12Update based on a scan of my 6828 folder
Frans Kaashoek
2016-08-18 13:37:32 -04:00
2a117310b5Removed useless variable.
Peter H. Froehlich
2015-10-03 04:43:05 -04:00
216fdf846fAgain, QEMU command line to avoid image warning.
Peter H. Froehlich
2015-10-03 01:55:43 -04:00
1ccb5a6fcaRemove unused variable, nits.
Peter H. Froehlich
2015-09-26 23:10:25 -04:00
2c60b7f31fRemoved useless function and prototypes.
Peter H. Froehlich
2015-09-26 18:47:39 -04:00
09396a801aThanks to Warren Toomey for RDMUL and WRMUL.
Frans Kaashoek
2016-08-18 07:42:13 -04:00
4a3576b810Small change to support RWMUL and WRMUL. Now xv6 truly works with a block size that is a multiple of the sector size.
Frans Kaashoek
2016-08-18 07:39:03 -04:00
19f65413bdhold ptable.lock for the entire process creation however, processes still modify their own p->* without locking
Robert Morris
2016-08-13 03:44:13 -04:00
20d05d4411separate atomic test-and-set from memory barrier. * use xchg only for its atomicness. * use __sync_synchronize() for both CPU and compiler barrier.
Robert Morris
2016-08-12 07:03:35 -04:00
9c65b32d9enothing much
Robert Morris
2016-08-11 15:41:53 -04:00
c779cc2be1main comments
Robert Morris
2016-08-11 13:55:13 -04:00
241188276cnits
Robert Morris
2016-08-10 12:06:02 -04:00
3431cd4927more comments in entryother.S
Robert Morris
2016-08-10 11:35:28 -04:00
0a69dc9b17even more explicit that entry.S is linked into kernel, unlike bootasm.S.
Robert Morris
2016-08-10 11:22:36 -04:00
858475e4dftiny clarifications to some gdt code.
Robert Morris
2016-08-10 10:51:14 -04:00
0a4a4230a3shell nits fix Regehr complaint
Robert Morris
2016-08-08 13:06:38 -04:00
50edfe1412nits
Frans Kaashoek
2015-11-15 13:40:42 -05:00