i think my cmpxchg use was wrong in acquire
nesting cli/sti: release shouldn't always enable interrupts separate setup of lapic from starting of other cpus, so cpu() works earlier flag to disable locking in console output make locks work even when curproc==0 (still crashes in clock interrupt)
This commit is contained in:
parent
664324745e
commit
8148b6ee53
11 changed files with 85 additions and 32 deletions
4
Notes
4
Notes
|
@ -125,6 +125,10 @@ in general, the table locks protect both free-ness and
|
|||
|
||||
why can't i get a lock in console code?
|
||||
always triple fault
|
||||
because release turns on interrupts!
|
||||
a bad idea very early in main()
|
||||
but mp_init() calls cprintf
|
||||
|
||||
lock code shouldn't call cprintf...
|
||||
ide_init doesn't work now?
|
||||
and IOAPIC: read from unsupported address
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue