Ignore:
Timestamp:
Jul 7, 2017, 1:48:48 PM (4 years ago)
Author:
max@…
Message:

add the x86_64 flag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/elf.c

    r156 r157  
    4646           && ((header->e_machine == EM_MIPS) ||
    4747               (header->e_machine == EM_MIPS_RS3_LE) ||
    48                (header->e_machine == EM_386))
     48               (header->e_machine == EM_X86_64))
    4949           && (header->e_type == ET_EXEC))
    5050                return true;
     
    6464        if( (header->e_machine == EM_MIPS) ||
    6565            (header->e_machine == EM_MIPS_RS3_LE) ||
    66             (header->e_machine == EM_386) )
    67                 printk("\n[ERROR] in %s : unexpected core / accept only MIPS or 80386\n", __FUNCTION__ );
     66            (header->e_machine == EM_X86_64) )
     67                printk("\n[ERROR] in %s : unexpected core / accept only MIPS or x86_64\n", __FUNCTION__ );
    6868
    6969        if( header->e_type == ET_EXEC )
Note: See TracChangeset for help on using the changeset viewer.