Changeset 3bacee1 in mainline for kernel/arch/ia32/src
- Timestamp:
- 2018-04-12T16:27:17Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- Location:
- kernel/arch/ia32/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/cpu/cpu.c
r76d0981d r3bacee1 101 101 if (CPU->arch.fi.bits.sse) { 102 102 asm volatile ( 103 104 105 106 107 103 "mov %%cr4, %[help]\n" 104 "or %[mask], %[help]\n" 105 "mov %[help], %%cr4\n" 106 : [help] "+r" (help) 107 : [mask] "i" (CR4_OSFXSR | CR4_OSXMMEXCPT) 108 108 ); 109 109 } … … 128 128 * Check for AMD processor. 129 129 */ 130 if ((info.cpuid_ebx == AMD_CPUID_EBX) 131 && (info.cpuid_ecx == AMD_CPUID_ECX)132 &&(info.cpuid_edx == AMD_CPUID_EDX))130 if ((info.cpuid_ebx == AMD_CPUID_EBX) && 131 (info.cpuid_ecx == AMD_CPUID_ECX) && 132 (info.cpuid_edx == AMD_CPUID_EDX)) 133 133 CPU->arch.vendor = VendorAMD; 134 134 … … 136 136 * Check for Intel processor. 137 137 */ 138 if ((info.cpuid_ebx == INTEL_CPUID_EBX) 139 && (info.cpuid_ecx == INTEL_CPUID_ECX)140 &&(info.cpuid_edx == INTEL_CPUID_EDX))138 if ((info.cpuid_ebx == INTEL_CPUID_EBX) && 139 (info.cpuid_ecx == INTEL_CPUID_ECX) && 140 (info.cpuid_edx == INTEL_CPUID_EDX)) 141 141 CPU->arch.vendor = VendorIntel; 142 142 … … 148 148 } 149 149 150 void cpu_print_report(cpu_t *cpu)150 void cpu_print_report(cpu_t *cpu) 151 151 { 152 152 printf("cpu%u: (%s family=%u model=%u stepping=%u apicid=%u) %" PRIu16 153 154 153 " MHz\n", cpu->id, vendor_str[cpu->arch.vendor], cpu->arch.family, 154 cpu->arch.model, cpu->arch.stepping, cpu->arch.id, cpu->frequency_mhz); 155 155 } 156 156 -
kernel/arch/ia32/src/ia32.c
r76d0981d r3bacee1 200 200 outdev_t **ns16550_out_ptr = NULL; 201 201 #endif 202 ns16550_instance_t *ns16550_instance 203 =ns16550_init(NS16550_BASE, 0, IRQ_NS16550, NULL, NULL,202 ns16550_instance_t *ns16550_instance = 203 ns16550_init(NS16550_BASE, 0, IRQ_NS16550, NULL, NULL, 204 204 ns16550_out_ptr); 205 205 if (ns16550_instance) {
Note:
See TracChangeset
for help on using the changeset viewer.