- First pass through with with device tree enhancement merge. Most of the mechanisms should
be in place but don't expect anything to quite work yet. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1662 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
cadfd4c462
commit
b78c1972fe
52 changed files with 1714 additions and 1769 deletions
1
src/cpu/simple_init/Config.lb
Normal file
1
src/cpu/simple_init/Config.lb
Normal file
|
|
@ -0,0 +1 @@
|
|||
object simple_cpu_init.o
|
||||
26
src/cpu/simple_init/simple_cpu_init.c
Normal file
26
src/cpu/simple_init/simple_cpu_init.c
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#include <linux/console.h>
|
||||
#include <device/device.h>
|
||||
#include <device/path.h>
|
||||
#include <device/cpu.h>
|
||||
|
||||
#if CONFIG_SMP
|
||||
#error "This Configuration does not support SMP"
|
||||
#endif
|
||||
|
||||
void initialize_cpus(device_t root)
|
||||
{
|
||||
struct device_path cpu_path;
|
||||
struct cpu_info *info;
|
||||
|
||||
/* Find the info struct for this cpu */
|
||||
info = cpu_info();
|
||||
|
||||
/* Get the device path of the boot cpu */
|
||||
cpu_path.type = DEVICE_PATH_BOOT_CPU;
|
||||
|
||||
/* Find the device struct for the boot cpu */
|
||||
info->cpu = alloc_find_dev(root->link[1], &cpu_path);
|
||||
|
||||
/* Initialize the bootstrap processor */
|
||||
cpu_initialize();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue