Changes in kernel/arch/ppc32/src/ppc32.c [2902e1bb:4a99c57] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/ppc32.c
r2902e1bb r4a99c57 47 47 #include <mm/page.h> 48 48 #include <mm/km.h> 49 #include <time/clock.h> 49 50 #include <abi/proc/uarg.h> 50 51 #include <console/console.h> … … 99 100 interrupt_init(); 100 101 102 ofw_tree_node_t *cpus_node; 103 ofw_tree_node_t *cpu_node; 104 ofw_tree_property_t *freq_prop; 105 106 cpus_node = ofw_tree_lookup("/cpus"); 107 if (!cpus_node) 108 panic("Could not find cpus node."); 109 110 cpu_node = cpus_node->child; 111 if (!cpu_node) 112 panic("Could not find first cpu."); 113 114 freq_prop = ofw_tree_getprop(cpu_node, "timebase-frequency"); 115 if (!freq_prop) 116 panic("Could not get frequency property."); 117 118 uint32_t freq; 119 freq = *((uint32_t *) freq_prop->value); 120 101 121 /* Start decrementer */ 102 start_decrementer(); 103 } 104 122 decrementer_start(freq / HZ); 123 } 124 125 #ifdef CONFIG_FB 105 126 static bool display_register(ofw_tree_node_t *node, void *arg) 106 127 { … … 169 190 return true; 170 191 } 192 #endif 171 193 172 194 void arch_post_mm_init(void)
Note:
See TracChangeset
for help on using the changeset viewer.