Changeset 433a2aa in mainline


Ignore:
Timestamp:
2006-05-21T21:22:57Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f5f2c15
Parents:
6bbb1610
Message:

add missing stuff to compile

Location:
arch/ppc64/loader
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • arch/ppc64/loader/Makefile

    r6bbb1610 r433a2aa  
    3030#
    3131
    32 TARGET = ppc-linux-gnu
     32TARGET = ppc64-linux-gnu
    3333TOOLCHAIN_DIR = /usr/local/ppc64/bin
    3434
  • arch/ppc64/loader/ofw.c

    r6bbb1610 r433a2aa  
    177177        ofw_arg_t result[3];
    178178       
    179         if (ofw_call("call-method", 4, 4, result, "translate", ofw_mmu, virt, 1) != 0) {
     179        if (ofw_call("call-method", 4, 4, result, "translate", ofw_mmu, (unsigned long) virt, 1) != 0) {
    180180                puts("Error: MMU method translate() failed, halting.\n");
    181181                halt();
    182182        }
    183         return (void *) result[2];
    184 }
    185 
    186 
    187 int ofw_map(const void *phys, const void *virt, const int size, const int mode)
     183        return (void *) (unsigned long) result[2];
     184}
     185
     186
     187int ofw_map(const void *phys, const void *virt, const long size, const int mode)
    188188{
    189189        return ofw_call("call-method", 6, 1, NULL, "map", ofw_mmu, mode, size, virt, phys);
     
    205205        map->count = 0;
    206206        for (pos = 0; (pos < ret / sizeof(unsigned int)) && (map->count < MEMMAP_MAX_RECORDS); pos += ac + sc) {
    207                 void * start = (void *) buf[pos + ac - 1];
     207                void * start = (void *) (unsigned long) buf[pos + ac - 1];
    208208                unsigned int size = buf[pos + ac + sc - 1];
    209209               
  • arch/ppc64/loader/pack

    r6bbb1610 r433a2aa  
    4646                *(REALMODE);
    4747                *(.text);
     48                *(.toc);
    4849               
     50                *(.opd);
    4951                *(.rodata);
    5052                *(.rodata.*);
     
    9294#define ${MACRO}_SIZE ((unsigned long) ${MACRO}_END - (unsigned long) ${MACRO}_START)" >> "$HEADER"
    9395       
    94         "$OBJCOPY" -I binary -O elf32-powerpc -B powerpc:common --rename-section ".data=.${BASENAME}_image" "$TASK" "$OBJECT"
     96        "$OBJCOPY" -I binary -O elf64-powerpc -B powerpc:common64 --rename-section ".data=.${BASENAME}_image" "$TASK" "$OBJECT"
    9597               
    9698        DATA="${DATA}
     
    102104done
    103105
    104 echo '  }
     106echo '}
     107
     108        /DISCARD/ : {
     109                *(*);
     110        }
    105111}' >> "$LINK"
    106112
Note: See TracChangeset for help on using the changeset viewer.