Changeset a9ac978 in mainline for kernel/arch/sparc64/src/cpu/cpu.c
- Timestamp:
- 2006-09-27T20:11:34Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 00b38a3
- Parents:
- 86b31ba9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/cpu/cpu.c
r86b31ba9 ra9ac978 51 51 52 52 upa_config.value = upa_config_read(); 53 CPU->arch.mid = upa_config.mid; 54 53 55 node = ofw_tree_find_child_by_device_type(ofw_tree_lookup("/"), "cpu"); 54 56 while (node) { … … 58 60 if (prop && prop->value) { 59 61 mid = *((uint32_t *) prop->value); 60 if (mid == upa_config.mid) {62 if (mid == CPU->arch.mid) { 61 63 prop = ofw_tree_getprop(node, "clock-frequency"); 62 64 if (prop && prop->value) … … 79 81 /** Print version information for a processor. 80 82 * 83 * This function is called by the bootstrap processor. 84 * 81 85 * @param m Processor structure of the CPU for which version information is to be printed. 82 86 */ … … 85 89 char *manuf, *impl; 86 90 87 switch ( CPU->arch.ver.manuf) {88 91 switch (m->arch.ver.manuf) { 92 case MANUF_FUJITSU: 89 93 manuf = "Fujitsu"; 90 94 break; 91 95 case MANUF_ULTRASPARC: 92 96 manuf = "UltraSPARC"; 93 97 break; 94 98 case MANUF_SUN: 95 99 manuf = "Sun"; 96 100 break; 97 101 default: 98 102 manuf = "Unknown"; 99 103 break; … … 101 105 102 106 switch (CPU->arch.ver.impl) { 103 107 case IMPL_ULTRASPARCI: 104 108 impl = "UltraSPARC I"; 105 109 break; 106 110 case IMPL_ULTRASPARCII: 107 111 impl = "UltraSPARC II"; 108 112 break; 109 113 case IMPL_ULTRASPARCII_I: 110 114 impl = "UltraSPARC IIi"; 111 115 break; 112 116 case IMPL_ULTRASPARCII_E: 113 117 impl = "UltraSPARC IIe"; 114 118 break; 115 119 case IMPL_ULTRASPARCIII: 116 120 impl = "UltraSPARC III"; 117 121 break; 118 122 case IMPL_ULTRASPARCIV_PLUS: 119 123 impl = "UltraSPARC IV+"; 120 124 break; 121 125 case IMPL_SPARC64V: 122 126 impl = "SPARC 64V"; 123 127 break; 124 128 default: 125 129 impl = "Unknown"; 126 130 break; … … 128 132 129 133 printf("cpu%d: manuf=%s, impl=%s, mask=%d (%dMHz)\n", 130 CPU->id, manuf, impl, CPU->arch.ver.mask, CPU->arch.clock_frequency/1000000);134 m->id, manuf, impl, m->arch.ver.mask, m->arch.clock_frequency/1000000); 131 135 } 132 136
Note:
See TracChangeset
for help on using the changeset viewer.