Ignore:
File:
1 edited

Legend:

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

    ra000878c rb60c582  
    3737#include <arch/register.h>
    3838#include <print.h>
    39 #include <memstr.h>
    4039
    4140void cpu_arch_init(void)
     
    5251void cpu_print_report(cpu_t *m)
    5352{
    54         const char *family_str;
     53        char *family_str;
    5554        char vendor[2 * sizeof(uint64_t) + 1];
    5655       
    57         memcpy(vendor, &CPU->arch.cpuid0, 8);
    58         memcpy(vendor + 8, &CPU->arch.cpuid1, 8);
     56        *((uint64_t *) &vendor[0 * sizeof(uint64_t)]) = CPU->arch.cpuid0;
     57        *((uint64_t *) &vendor[1 * sizeof(uint64_t)]) = CPU->arch.cpuid1;
    5958        vendor[sizeof(vendor) - 1] = 0;
    6059       
    61         switch (m->arch.cpuid3.family) {
     60        switch(m->arch.cpuid3.family) {
    6261        case FAMILY_ITANIUM:
    6362                family_str = "Itanium";
Note: See TracChangeset for help on using the changeset viewer.