Changeset 441 for trunk/kernel/libk


Ignore:
Timestamp:
May 9, 2018, 3:13:56 PM (7 years ago)
Author:
alain
Message:

Fix a bug in rpc_vmm_get_pte_client() function (bad RPC index).

File:
1 edited

Legend:

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

    r438 r441  
    4646           && (header->e_ident[EI_DATA] == ELFDATA2LSB)
    4747           && (header->e_ident[EI_VERSION] == EV_CURRENT)
    48 /*
    49            && (header->e_ident[EI_OSABI] == ELFOSABI_NONE)
    50 */
    5148           && ((header->e_machine == EM_MIPS) ||
    5249               (header->e_machine == EM_MIPS_RS3_LE) ||
     
    6360        if( header->e_ident[EI_VERSION] != EV_CURRENT )
    6461                printk("\n[ERROR] in %s : Elf is not in Current Version\n", __FUNCTION__);
    65 /*
    66         if( header->e_ident[EI_OSABI] != ELFOSABI_NONE )
    67                 printk("\n[ERROR] in %s : Unexpected Elf ABI, need UNIX System V ABI\n", __FUNCTION__ );
    68 */
     62
    6963        if( (header->e_machine != EM_MIPS) &&
    7064            (header->e_machine != EM_MIPS_RS3_LE) &&
     
    248242        if( error )
    249243        {
    250                 printk("\n[ERROR] in %s : failed to open file %s\n", __FUNCTION__ , pathname );
     244                printk("\n[ERROR] in %s : failed to open file <%s>\n", __FUNCTION__ , pathname );
    251245                return -1;
    252246        }
     
    263257        if( error )
    264258        {
    265                 printk("\n[ERROR] in %s : cannot get header file %s\n", __FUNCTION__ , pathname );
     259                printk("\n[ERROR] in %s : cannot get header for <%s>\n", __FUNCTION__ , pathname );
    266260                vfs_close( file_xp , file_id );
    267261                return -1;
     
    270264#if (DEBUG_ELF_LOAD & 1)
    271265if( DEBUG_ELF_LOAD < cycle )
    272 printk("\n[DBG] %s : loaded elf header for %s\n", __FUNCTION__ , pathname );
     266printk("\n[DBG] %s : loaded elf header for <%s>\n", __FUNCTION__ , pathname );
    273267#endif
    274268
     
    310304#if (DEBUG_ELF_LOAD & 1)
    311305if( DEBUG_ELF_LOAD < cycle )
    312 printk("\n[DBG] %s : segments array allocated for %s\n", __FUNCTION__ , pathname );
     306printk("\n[DBG] %s : segments array allocated for <%s>\n", __FUNCTION__ , pathname );
    313307#endif
    314308
     
    330324#if (DEBUG_ELF_LOAD & 1)
    331325if( DEBUG_ELF_LOAD < cycle )
    332 printk("\n[DBG] %s loaded segments descriptors for %s \n", __FUNCTION__ , pathname );
     326printk("\n[DBG] %s loaded segments descriptors for <%s>\n", __FUNCTION__ , pathname );
    333327#endif
    334328
Note: See TracChangeset for help on using the changeset viewer.