summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/x86/machine/boot.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/x86/machine/boot.c b/arch/x86/machine/boot.c
index 0ffbe8d1..aad1a037 100644
--- a/arch/x86/machine/boot.c
+++ b/arch/x86/machine/boot.c
@@ -537,7 +537,15 @@ boot_get_ap_stack(void)
unsigned int index;
index = boot_ap_id - 1;
- assert(boot_ap_id < ARRAY_SIZE(boot_ap_stacks));
+
+ /*
+ * TODO Remove this check once all the SMP-related code has been cleanly
+ * isolated.
+ */
+#if CONFIG_SMP
+ assert(index< ARRAY_SIZE(boot_ap_stacks));
+#endif /* CONFIG_SMP */
+
return boot_ap_stacks[index];
}