Changeset 15d0046 in mainline for kernel/arch/ppc32/src/ppc32.c
- Timestamp:
- 2014-09-12T13:22:33Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9b20126
- Parents:
- 8db09e4 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/ppc32.c
r8db09e4 r15d0046 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();122 decrementer_start(freq / HZ); 103 123 } 104 124
Note:
See TracChangeset
for help on using the changeset viewer.