Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 3467 → Rev 3450

/branches/sparc/kernel/arch/sparc64/src/smp/smp.c
43,7 → 43,6
#include <synch/synch.h>
#include <synch/waitq.h>
#include <print.h>
#include <arch/cpu_node.h>
 
/**
* This global variable is used to pick-up application processors
62,7 → 61,7
ofw_tree_node_t *node;
count_t cnt = 0;
node = ofw_tree_find_child_by_device_type(cpus_parent(), "cpu");
node = ofw_tree_find_child_by_device_type(ofw_tree_lookup("/"), "cpu");
while (node) {
cnt++;
node = ofw_tree_find_peer_by_device_type(node, "cpu");
77,12 → 76,12
ofw_tree_node_t *node;
int i;
node = ofw_tree_find_child_by_device_type(cpus_parent(), "cpu");
node = ofw_tree_find_child_by_device_type(ofw_tree_lookup("/"), "cpu");
for (i = 0; node; node = ofw_tree_find_peer_by_device_type(node, "cpu"), i++) {
uint32_t mid;
ofw_tree_property_t *prop;
prop = ofw_tree_getprop(node, PORTID_NAME);
prop = ofw_tree_getprop(node, "upa-portid");
if (!prop || !prop->value)
continue;
/branches/sparc/kernel/arch/sparc64/src/cpu/cpu.c
37,7 → 37,6
#include <genarch/ofw/ofw_tree.h>
#include <arch/drivers/tick.h>
#include <print.h>
#include <arch/cpu_node.h>
 
/** Perform sparc64 specific initialization of the processor structure for the
* current processor.
55,11 → 54,11
/*
* Detect processor frequency.
*/
node = ofw_tree_find_child_by_device_type(cpus_parent(), "cpu");
node = ofw_tree_find_child_by_device_type(ofw_tree_lookup("/"), "cpu");
while (node) {
ofw_tree_property_t *prop;
 
prop = ofw_tree_getprop(node, PORTID_NAME);
prop = ofw_tree_getprop(node, "upa-portid");
if (prop && prop->value) {
mid = *((uint32_t *) prop->value);
if (mid == CPU->arch.mid) {
/branches/sparc/kernel/arch/sparc64/src/drivers/simics_output.c
File deleted
/branches/sparc/kernel/arch/sparc64/src/sparc64.c
38,7 → 38,6
#include <arch/trap/trap.h>
#include <arch/console.h>
#include <proc/thread.h>
#include <arch/drivers/simics_output.h>
#include <console/console.h>
#include <arch/boot/boot.h>
#include <arch/arch.h>
88,8 → 87,7
*/
irq_init(1 << 11, 128);
simics_output_init();
//standalone_sparc64_console_init();
standalone_sparc64_console_init();
}
}