Ignore:
File:
1 edited

Legend:

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

    rb60c582 ra000878c  
    3737#include <arch/register.h>
    3838#include <print.h>
     39#include <memstr.h>
    3940
    4041void cpu_arch_init(void)
     
    5152void cpu_print_report(cpu_t *m)
    5253{
    53         char *family_str;
     54        const char *family_str;
    5455        char vendor[2 * sizeof(uint64_t) + 1];
    5556       
    56         *((uint64_t *) &vendor[0 * sizeof(uint64_t)]) = CPU->arch.cpuid0;
    57         *((uint64_t *) &vendor[1 * sizeof(uint64_t)]) = CPU->arch.cpuid1;
     57        memcpy(vendor, &CPU->arch.cpuid0, 8);
     58        memcpy(vendor + 8, &CPU->arch.cpuid1, 8);
    5859        vendor[sizeof(vendor) - 1] = 0;
    5960       
    60         switch(m->arch.cpuid3.family) {
     61        switch (m->arch.cpuid3.family) {
    6162        case FAMILY_ITANIUM:
    6263                family_str = "Itanium";
Note: See TracChangeset for help on using the changeset viewer.