Changeset 433a2aa in mainline
- Timestamp:
- 2006-05-21T21:22:57Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f5f2c15
- Parents:
- 6bbb1610
- Location:
- arch/ppc64/loader
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc64/loader/Makefile
r6bbb1610 r433a2aa 30 30 # 31 31 32 TARGET = ppc -linux-gnu32 TARGET = ppc64-linux-gnu 33 33 TOOLCHAIN_DIR = /usr/local/ppc64/bin 34 34 -
arch/ppc64/loader/ofw.c
r6bbb1610 r433a2aa 177 177 ofw_arg_t result[3]; 178 178 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) { 180 180 puts("Error: MMU method translate() failed, halting.\n"); 181 181 halt(); 182 182 } 183 return (void *) result[2];184 } 185 186 187 int ofw_map(const void *phys, const void *virt, const intsize, const int mode)183 return (void *) (unsigned long) result[2]; 184 } 185 186 187 int ofw_map(const void *phys, const void *virt, const long size, const int mode) 188 188 { 189 189 return ofw_call("call-method", 6, 1, NULL, "map", ofw_mmu, mode, size, virt, phys); … … 205 205 map->count = 0; 206 206 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]; 208 208 unsigned int size = buf[pos + ac + sc - 1]; 209 209 -
arch/ppc64/loader/pack
r6bbb1610 r433a2aa 46 46 *(REALMODE); 47 47 *(.text); 48 *(.toc); 48 49 50 *(.opd); 49 51 *(.rodata); 50 52 *(.rodata.*); … … 92 94 #define ${MACRO}_SIZE ((unsigned long) ${MACRO}_END - (unsigned long) ${MACRO}_START)" >> "$HEADER" 93 95 94 "$OBJCOPY" -I binary -O elf 32-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" 95 97 96 98 DATA="${DATA} … … 102 104 done 103 105 104 echo ' } 106 echo '} 107 108 /DISCARD/ : { 109 *(*); 110 } 105 111 }' >> "$LINK" 106 112
Note:
See TracChangeset
for help on using the changeset viewer.