Changeset 3bacee1 in mainline for kernel/arch/ia32/src


Ignore:
Timestamp:
2018-04-12T16:27:17Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
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)
Message:

Make ccheck-fix again and commit more good files.

Location:
kernel/arch/ia32/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/cpu/cpu.c

    r76d0981d r3bacee1  
    101101        if (CPU->arch.fi.bits.sse) {
    102102                asm volatile (
    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)
     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)
    108108                );
    109109        }
     
    128128                 * Check for AMD processor.
    129129                 */
    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))
    133133                        CPU->arch.vendor = VendorAMD;
    134134
     
    136136                 * Check for Intel processor.
    137137                 */
    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))
    141141                        CPU->arch.vendor = VendorIntel;
    142142
     
    148148}
    149149
    150 void cpu_print_report(cpu_t* cpu)
     150void cpu_print_report(cpu_t *cpu)
    151151{
    152152        printf("cpu%u: (%s family=%u model=%u stepping=%u apicid=%u) %" PRIu16
    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);
     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);
    155155}
    156156
  • kernel/arch/ia32/src/ia32.c

    r76d0981d r3bacee1  
    200200        outdev_t **ns16550_out_ptr = NULL;
    201201#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,
    204204            ns16550_out_ptr);
    205205        if (ns16550_instance) {
Note: See TracChangeset for help on using the changeset viewer.