summaryrefslogtreecommitdiff
path: root/kern/kernel.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2012-12-12 23:04:26 +0100
committerRichard Braun <rbraun@sceen.net>2012-12-12 23:04:26 +0100
commit45acb625b17ca642fa968a7ca41e0a03e8e9ccfb (patch)
tree944e86a982b2576b10dcacffb1e9439823c09bb6 /kern/kernel.h
parent51bff7b18de9329d7bd77324cc597e72173fae74 (diff)
Simplify requirements on interrupts during initialization
Don't involve the pmap module directly, as there could be others. Make the cpu module completely responsible for synchronizing all processors on kernel entry so that interrupts can be explicitely enabled there.
Diffstat (limited to 'kern/kernel.h')
-rw-r--r--kern/kernel.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/kern/kernel.h b/kern/kernel.h
index 22d5714b..f5821ca6 100644
--- a/kern/kernel.h
+++ b/kern/kernel.h
@@ -26,13 +26,15 @@
/*
* Machine-independent entry point.
+ *
+ * Interrupts must be disabled when calling this function.
*/
void kernel_main(void);
/*
* Entry point for APs.
*
- * Interrupts must be enabled when calling this function.
+ * Interrupts must be disabled when calling this function.
*/
void kernel_ap_main(void);