From 45acb625b17ca642fa968a7ca41e0a03e8e9ccfb Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Wed, 12 Dec 2012 23:04:26 +0100 Subject: 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. --- kern/kernel.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kern/kernel.h') 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); -- cgit v1.2.3