Rev 3467 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3467 | Rev 3479 | ||
---|---|---|---|
Line 45... | Line 45... | ||
45 | void cpu_arch_init(void) |
45 | void cpu_arch_init(void) |
46 | { |
46 | { |
47 | ofw_tree_node_t *node; |
47 | ofw_tree_node_t *node; |
48 | uint32_t mid; |
48 | uint32_t mid; |
49 | uint32_t clock_frequency = 0; |
49 | uint32_t clock_frequency = 0; |
50 | upa_config_t upa_config; |
50 | icbus_config_t icbus_config; |
51 | 51 | ||
52 | upa_config.value = upa_config_read(); |
52 | icbus_config.value = icbus_config_read(); |
53 | CPU->arch.mid = upa_config.mid; |
53 | CPU->arch.mid = icbus_config.mid; |
54 | 54 | ||
55 | /* |
55 | /* |
56 | * Detect processor frequency. |
56 | * Detect processor frequency. |
57 | */ |
57 | */ |
58 | node = ofw_tree_find_child_by_device_type(cpus_parent(), "cpu"); |
58 | node = ofw_tree_find_child_by_device_type(cpus_parent(), "cpu"); |