summaryrefslogtreecommitdiff
path: root/kalloc.c
diff options
context:
space:
mode:
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)
Diffstat (limited to 'kalloc.c')
-rw-r--r--kalloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kalloc.c b/kalloc.c
index 969b81d..cc5791d 100644
--- a/kalloc.c
+++ b/kalloc.c
@@ -10,6 +10,9 @@
#include "param.h"
#include "types.h"
#include "defs.h"
+#include "param.h"
+#include "mmu.h"
+#include "proc.h"
#include "spinlock.h"
struct spinlock kalloc_lock;