- First stab at running linuxbios without the old static device tree.
Things are close but not quite there yet. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1681 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@ -3,7 +3,6 @@
|
||||
#include <cpu/x86/msr.h>
|
||||
#include <cpu/amd/mtrr.h>
|
||||
#include <device/device.h>
|
||||
#include <device/chip.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
#include <string.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
extern struct chip_control cpu_amd_socket_940_control;
|
||||
extern struct chip_operations cpu_amd_socket_940_ops;
|
||||
|
||||
struct cpu_amd_socket_940_config {
|
||||
};
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include <device/chip.h>
|
||||
#include <device/device.h>
|
||||
#include "chip.h"
|
||||
|
||||
|
||||
struct chip_control cpu_amd_socket_940_control = {
|
||||
struct chip_operations cpu_amd_socket_940_ops = {
|
||||
.name = "socket 940",
|
||||
};
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <device/chip.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
#include <string.h>
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <device/chip.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
#include <string.h>
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <device/chip.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
#include <string.h>
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <device/chip.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
#include <string.h>
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
#include <device/chip.h>
|
||||
#include <device/device.h>
|
||||
#include <device/pci.h>
|
||||
#include <string.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include <device/chip.h>
|
||||
#include <device/device.h>
|
||||
#include "chip.h"
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include <device/chip.h>
|
||||
#include <device/device.h>
|
||||
#include "chip.h"
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include <device/chip.h>
|
||||
#include <device/device.h>
|
||||
#include "chip.h"
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include <device/chip.h>
|
||||
#include <device/device.h>
|
||||
#include "chip.h"
|
||||
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
#error "This Configuration does not support SMP"
|
||||
#endif
|
||||
|
||||
void initialize_cpus(device_t root)
|
||||
void initialize_cpus(struct bus *cpu_bus)
|
||||
{
|
||||
struct device_path cpu_path;
|
||||
struct cpu_info *info;
|
||||
@ -19,7 +19,7 @@ void initialize_cpus(device_t root)
|
||||
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);
|
||||
info->cpu = alloc_find_dev(bus, &cpu_path);
|
||||
|
||||
/* Initialize the bootstrap processor */
|
||||
cpu_initialize();
|
||||
|
@ -234,12 +234,12 @@ void secondary_cpu_init(void)
|
||||
stop_this_cpu();
|
||||
}
|
||||
|
||||
static void initialize_other_cpus(device_t root)
|
||||
static void initialize_other_cpus(struct bus *cpu_bus)
|
||||
{
|
||||
int old_active_count, active_count;
|
||||
device_t cpu;
|
||||
/* Loop through the cpus once getting them started */
|
||||
for(cpu = root->link[1].children; cpu ; cpu = cpu->sibling) {
|
||||
for(cpu = cpu_bus->children; cpu ; cpu = cpu->sibling) {
|
||||
if (cpu->path.type != DEVICE_PATH_APIC) {
|
||||
continue;
|
||||
}
|
||||
@ -267,7 +267,7 @@ static void initialize_other_cpus(device_t root)
|
||||
udelay(10);
|
||||
active_count = atomic_read(&active_cpus);
|
||||
}
|
||||
for(cpu = root->link[1].children; cpu; cpu = cpu->sibling) {
|
||||
for(cpu = cpu_bus->children; cpu; cpu = cpu->sibling) {
|
||||
if (cpu->path.type != DEVICE_PATH_APIC) {
|
||||
continue;
|
||||
}
|
||||
@ -284,7 +284,7 @@ static void initialize_other_cpus(device_t root)
|
||||
#define initialize_other_cpus(root) do {} while(0)
|
||||
#endif /* CONFIG_SMP */
|
||||
|
||||
void initialize_cpus(device_t root)
|
||||
void initialize_cpus(struct bus *cpu_bus)
|
||||
{
|
||||
struct device_path cpu_path;
|
||||
struct cpu_info *info;
|
||||
@ -305,12 +305,12 @@ void initialize_cpus(device_t root)
|
||||
#endif
|
||||
|
||||
/* Find the device structure for the boot cpu */
|
||||
info->cpu = alloc_find_dev(&root->link[1], &cpu_path);
|
||||
info->cpu = alloc_find_dev(cpu_bus, &cpu_path);
|
||||
|
||||
/* Initialize the bootstrap processor */
|
||||
cpu_initialize();
|
||||
|
||||
/* Now initialize the rest of the cpus */
|
||||
initialize_other_cpus(root);
|
||||
initialize_other_cpus(cpu_bus);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user