summaryrefslogtreecommitdiff
path: root/arch/x86/machine/boot.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2013-03-14 22:26:24 +0100
committerRichard Braun <rbraun@sceen.net>2013-03-14 22:26:24 +0100
commited09fa58fb5778d943b2636b13c873fa68d4daac (patch)
tree48f641ccf52688c23b4d8883bc13af17be7836ac /arch/x86/machine/boot.c
parentfd051e1e8b2cae9a302c08ff6df76b98ea6fe58e (diff)
kern/{kernel,thread}: rework initialization
Make cpu_count() available on kernel entry so that modules (and in particular the thread module) can allocate per-CPU resources from the BSP. This makes the initial state stable and simplifies code (no need to check for a transient early initialization state).
Diffstat (limited to 'arch/x86/machine/boot.c')
-rw-r--r--arch/x86/machine/boot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/machine/boot.c b/arch/x86/machine/boot.c
index 58b675f9..f42f9bbf 100644
--- a/arch/x86/machine/boot.c
+++ b/arch/x86/machine/boot.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2012 Richard Braun.
+ * Copyright (c) 2010, 2012, 2013 Richard Braun.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -284,6 +284,7 @@ boot_main(void)
vm_phys_info();
pic_setup();
pit_setup();
+ cpu_mp_setup();
kernel_main();
/* Never reached */