Commit graph

467 commits

Author SHA1 Message Date
rsc
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.)
2007-08-14 04:56:30 +00:00
rsc
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.
2007-08-14 04:55:45 +00:00
rsc
64659055bd ditto 2007-08-14 04:06:02 +00:00
rsc
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)).

No one really understands these things.
2007-08-14 04:05:27 +00:00
rsc
5e03dd86c8 add test for rm . 2007-08-10 17:53:09 +00:00
rsc
15b326b630 nit 2007-08-10 17:45:49 +00:00
rsc
8908cc9b15 correct line numbers 2007-08-10 17:45:14 +00:00
rsc
8139713c46 add note 2007-08-10 17:19:15 +00:00
rsc
2715cd3592 and spinlock 2007-08-10 17:17:57 +00:00
rsc
dca5b5ca2e avoid assignments in declarations 2007-08-10 17:17:42 +00:00
rsc
6861140a66 replace bogus loops with slightly less bogus loops. 2007-08-10 17:05:46 +00:00
rsc
3d145283a2 tweak kalloc 2007-08-10 17:02:36 +00:00
rsc
9736728d23 cleanup main 2007-08-10 17:00:00 +00:00
rsc
7d4aef6cfd various cleanups 2007-08-10 16:52:31 +00:00
rsc
b6095304b7 Make cp a magic symbol. 2007-08-10 16:37:27 +00:00
rsc
3bbbaca14d move variable declaration up 2007-08-10 16:35:01 +00:00
rsc
bc01170334 The final curproc[cpu()] is now cp 2007-08-09 19:06:37 +00:00
rsc
ab5c2dbb59 Clearer namei 2007-08-09 19:05:00 +00:00
rsc
806f4c11f7 oops 2007-08-09 17:53:03 +00:00
rsc
9583b476bf try to use cp only for curproc[cpu()] 2007-08-09 17:32:40 +00:00
rsc
22330658ff spacing 2007-08-09 16:56:40 +00:00
rsc
4249490230 notes 2007-08-08 10:32:32 +00:00
rsc
f2f062da61 check p->killed for long-lived sleeps 2007-08-08 10:29:42 +00:00
rsc
1cb183a987 2007 2007-08-08 10:27:15 +00:00
rsc
c65e499f3b help gcc 2007-08-08 10:27:04 +00:00
rsc
95c07f8267 move ialloc body up, avoiding double check for end of loop 2007-08-08 09:53:46 +00:00
rsc
32eea7665a panic like bget 2007-08-08 09:50:46 +00:00
rsc
3f98d050e1 refactor bget to be more like iget - make it clear that sleep loops 2007-08-08 09:50:26 +00:00
rsc
9ad44da676 unused 2007-08-08 09:44:23 +00:00
rsc
c16e0916a7 cleaner table 2007-08-08 09:43:07 +00:00
rsc
19b1f63813 cleaner table 2007-08-08 09:42:36 +00:00
rsc
453c6a65a2 convert syscall dispatch to table 2007-08-08 09:41:21 +00:00
rsc
c664dd5d23 missing void 2007-08-08 09:32:39 +00:00
rsc
61dff66b35 fix error message 2007-08-08 09:30:58 +00:00
rsc
115e177400 standardize on not using unsigned keyword 2007-08-08 09:30:48 +00:00
rsc
d80b06a1e0 iincref returns new ref 2007-08-08 09:30:42 +00:00
rsc
35a24c8318 fix index bug 2007-08-08 09:29:18 +00:00
rsc
2e51e12f09 make ls work on directories 2007-08-08 09:17:09 +00:00
rsc
3fd50978a8 spacing 2007-08-08 09:12:53 +00:00
rsc
5d0fe3445b more bugs 2007-08-08 09:10:16 +00:00
rsc
5f0c20ec14 fix . .. unlink bug 2007-08-08 09:08:29 +00:00
rsc
5bbba977d1 done 2007-08-08 09:02:50 +00:00
rsc
b6dc6187f7 add DPL_USER constant 2007-08-08 09:02:42 +00:00
rsc
f83f7ce2f6 set init name 2007-08-08 08:57:55 +00:00
rsc
00d0f794cf fix various bugs 2007-08-08 08:57:37 +00:00
rsc
bda5186c0d silence warning 2007-08-08 08:57:23 +00:00
rsc
ed960d2c19 watch for zombies 2007-08-08 08:57:03 +00:00
rsc
e204d0a151 atoi, for kill 2007-08-08 08:56:09 +00:00
rsc
e0924827ee add kill 2007-08-08 08:50:23 +00:00
rsc
e695b849af spacing 2007-08-08 08:44:11 +00:00