This website requires JavaScript.
6c34f97cb8
tell what an inode is
rsc
2007-08-27 14:23:48 +00:00
a505fd6651
FS cleanup.
rsc
2007-08-27 14:20:24 +00:00
d003d232fc
Another attempt at the bio.c comment.
rsc
2007-08-27 14:09:30 +00:00
efc12b8e61
Replace yield system call with sleep.
rsc
2007-08-27 13:34:35 +00:00
e1872bb130
formatting, fix comment
rsc
2007-08-27 13:11:13 +00:00
e0240674f5
make kfree loop same as kalloc
rsc
2007-08-27 12:50:36 +00:00
7bb73cdbc7
nits
rsc
2007-08-27 12:48:20 +00:00
8e67005320
cut bootmain to 1 sheet
rsc
2007-08-27 12:48:03 +00:00
8d2e9a4867
shuffle for formatting
rsc
2007-08-24 22:17:54 +00:00
d7b44dbcfc
minor cleanups
rsc
2007-08-24 22:17:41 +00:00
cb30c81860
nit
rsc
2007-08-24 21:33:11 +00:00
872a63e104
nits
rsc
2007-08-24 21:14:58 +00:00
766ba5cc06
first ever correct use of strncpy
rsc
2007-08-24 21:00:02 +00:00
aa6824ab64
remove unused variable
rsc
2007-08-24 20:59:43 +00:00
07090dd705
Remove struct uinode. Remove type arg to mknod (assume T_DEV).
rsc
2007-08-24 20:54:23 +00:00
fa1b34106a
not first anymore
rsc
2007-08-24 20:28:21 +00:00
97ac612fb1
nits
rsc
2007-08-24 20:28:08 +00:00
ffa58d3616
align
rsc
2007-08-24 20:27:47 +00:00
dd86897434
make wakeup1 static
rsc
2007-08-24 20:22:55 +00:00
e0e7d07e5a
test that fork fails gracefully
rsc
2007-08-24 20:20:23 +00:00
5af5f6aa7f
Reorder spinlock.c: acquire and release first
rsc
2007-08-24 20:06:14 +00:00
4bcd0f6a77
Add yield system call, for zombie test program (bad idea?).
rsc
2007-08-24 20:04:53 +00:00
1b789e1d50
Remove puts in favor of printf. Allow multiple arguments to ls.
rsc
2007-08-24 20:03:40 +00:00
8e88f9e2c6
comment nits
rtm
2007-08-24 19:52:49 +00:00
4d39b63388
nits
rsc
2007-08-24 19:46:19 +00:00
895c182d74
finish comments
rsc
2007-08-24 19:37:24 +00:00
124f32ae38
tweak
rsc
2007-08-24 19:36:52 +00:00
902b13f5d6
simplify ide queuing nits in comments
rtm
2007-08-24 19:32:36 +00:00
2bc72bdd29
bring bootasm and bootother more in sync
rsc
2007-08-24 19:25:52 +00:00
5d1f4b8a3a
Rework comments a bit.
rsc
2007-08-24 18:52:59 +00:00
2036534834
add missing iput() at end of _namei()
rtm
2007-08-24 14:56:17 +00:00
b55513796f
oops, O_CREATE doesn't truncate, so holes can't exist, thus no bug
rtm
2007-08-24 12:55:15 +00:00
3d5f21ee1f
test concurrent open/unlink of same file (ok) test files with holes (not ok)
rtm
2007-08-24 12:19:13 +00:00
68ae4cc127
comment what +m means; omit needless __
rsc
2007-08-24 00:34:54 +00:00
2aae720537
omit needless ampersands
rsc
2007-08-24 00:02:03 +00:00
649bc99fe4
align, sort
rsc
2007-08-23 23:58:19 +00:00
b1fb19b6df
Use parent pointer instead of ppid.
rsc
2007-08-23 14:40:30 +00:00
3a057d12ae
avoid hardcoding init as pid 1 proc[0]
rsc
2007-08-23 14:35:28 +00:00
1d7839a1da
my mistake found by robert
rsc
2007-08-22 17:45:52 +00:00
e9ddc7c099
NREQUEST = NBUF
rsc
2007-08-22 14:38:00 +00:00
15868c4bbf
better comment
rsc
2007-08-22 14:21:05 +00:00
f0721f1be4
tweaks
rsc
2007-08-22 06:20:10 +00:00
eaea18cb9c
PDF at http://am.lcs.mit.edu/~rsc/xv6.pdf
rsc
2007-08-22 06:01:32 +00:00
3dcf889c1b
cleanup
rsc
2007-08-22 05:57:39 +00:00
6bf2e5c898
add ln
rsc
2007-08-22 05:54:55 +00:00
c88bf235fe
check unlink of non-empty directory
rsc
2007-08-22 02:21:22 +00:00
bd39955ecc
ARGMAX -> MAXARGS
rsc
2007-08-21 20:01:11 +00:00
fbf9103952
remove namelen parameter
rsc
2007-08-21 19:58:55 +00:00
0073beee52
remove dead code
rsc
2007-08-21 19:22:27 +00:00
f32f3638f4
Various cleanup:
rsc
2007-08-21 19:22:08 +00:00
2d61a40b20
bug in usertests!
rsc
2007-08-20 21:00:20 +00:00
e2a620da49
checkpoint - simpler namei interface
rsc
2007-08-20 19:37:15 +00:00
ef30c2c749
no more w
rsc
2007-08-20 18:55:51 +00:00
bcca6c6bde
shuffle fs.c in bottom-up order
rsc
2007-08-20 18:23:52 +00:00
0655445ba9
cleanup loop
rsc
2007-08-14 19:42:14 +00:00
2186f88c21
formatting, cleanup
rsc
2007-08-14 19:41:56 +00:00
cce27ba9fb
formatting
rsc
2007-08-14 19:41:38 +00:00
07ddc0fa82
nit
rsc
2007-08-14 19:41:29 +00:00
fe5f50a03d
fixes
rsc
2007-08-14 19:41:01 +00:00
5e8c5d8bb8
formatting; split kbd constants into kbd.h
rsc
2007-08-14 19:31:16 +00:00
ea6e370964
i cannot prove that release before wakeup is wrong, but i cannot convince myself it is right either
rsc
2007-08-14 19:10:57 +00:00
4bc5056c19
formatting, simplify
rsc
2007-08-14 19:05:48 +00:00
8d0a83565a
formatting, sleep bug fix
rsc
2007-08-14 18:46:29 +00:00
f1f8dd91bc
formatting
rsc
2007-08-14 18:42:34 +00:00
29ff8d495c
ide_write unused => gone
rsc
2007-08-14 14:24:09 +00:00
8c4b5fc5b3
Gcc expects to be able to pick up the return address off the stack, so put one there for it. (Bug was hidden by bad segment limits.)
rsc
2007-08-14 04:56:30 +00:00
2ef3a64bb4
Because limit gives the address of the last addressable byte in the segment, the limit argument to SEG16 and SEG needs to have 1 subtracted from it.
rsc
2007-08-14 04:55:45 +00:00
64659055bd
ditto
rsc
2007-08-14 04:06:02 +00:00
3163085ace
Cannot use "g" as an arg constraint because some memory references aren't actually valid and gcc is a bit too smart in parsing (%0) and a bit too dumb in knowing which memory refs are not valid. Using "r" seems to constrain gcc to use a register as in (%eax) and not substitute a memory reference like (-36(%ebp)).
rsc
2007-08-14 04:05:27 +00:00
5e03dd86c8
add test for rm .
rsc
2007-08-10 17:53:09 +00:00
15b326b630
nit
rsc
2007-08-10 17:45:49 +00:00
8908cc9b15
correct line numbers
rsc
2007-08-10 17:45:14 +00:00
8139713c46
add note
rsc
2007-08-10 17:19:15 +00:00
2715cd3592
and spinlock
rsc
2007-08-10 17:17:57 +00:00
dca5b5ca2e
avoid assignments in declarations
rsc
2007-08-10 17:17:42 +00:00
6861140a66
replace bogus loops with slightly less bogus loops.
rsc
2007-08-10 17:05:46 +00:00
3d145283a2
tweak kalloc
rsc
2007-08-10 17:02:36 +00:00
9736728d23
cleanup main
rsc
2007-08-10 17:00:00 +00:00
7d4aef6cfd
various cleanups
rsc
2007-08-10 16:52:31 +00:00
b6095304b7
Make cp a magic symbol.
rsc
2007-08-10 16:37:27 +00:00
3bbbaca14d
move variable declaration up
rsc
2007-08-10 16:35:01 +00:00
bc01170334
The final curproc[cpu()] is now cp
rsc
2007-08-09 19:06:37 +00:00
ab5c2dbb59
Clearer namei
rsc
2007-08-09 19:05:00 +00:00
806f4c11f7
oops
rsc
2007-08-09 17:53:03 +00:00
9583b476bf
try to use cp only for curproc[cpu()]
rsc
2007-08-09 17:32:40 +00:00
22330658ff
spacing
rsc
2007-08-09 16:56:40 +00:00
4249490230
notes
rsc
2007-08-08 10:32:32 +00:00
f2f062da61
check p->killed for long-lived sleeps
rsc
2007-08-08 10:29:42 +00:00
1cb183a987
2007
rsc
2007-08-08 10:27:15 +00:00
c65e499f3b
help gcc
rsc
2007-08-08 10:27:04 +00:00
95c07f8267
move ialloc body up, avoiding double check for end of loop
rsc
2007-08-08 09:53:46 +00:00
32eea7665a
panic like bget
rsc
2007-08-08 09:50:46 +00:00
3f98d050e1
refactor bget to be more like iget - make it clear that sleep loops
rsc
2007-08-08 09:50:26 +00:00
9ad44da676
unused
rsc
2007-08-08 09:44:23 +00:00
c16e0916a7
cleaner table
rsc
2007-08-08 09:43:07 +00:00
19b1f63813
cleaner table
rsc
2007-08-08 09:42:36 +00:00
453c6a65a2
convert syscall dispatch to table
rsc
2007-08-08 09:41:21 +00:00
c664dd5d23
missing void
rsc
2007-08-08 09:32:39 +00:00
61dff66b35
fix error message
rsc
2007-08-08 09:30:58 +00:00
115e177400
standardize on not using unsigned keyword
rsc
2007-08-08 09:30:48 +00:00