ppc firmware upload fix

Signed-off-by: Thomas Charbonnel <thomas@undata.org>
This commit is contained in:
Thomas Charbonnel 2005-04-25 10:36:18 +00:00 committed by Jaroslav Kysela
parent d54b7eb412
commit a6a8030c6f

View file

@ -40,16 +40,7 @@ int read_bin_file(u_int32_t *array, const char *filename)
return -1; return -1;
} }
fclose(out); fclose(out);
#if __BYTE_ORDER == __BIG_ENDIAN
{
unsigned int idx;
for (idx = 0; idx < 24413; idx++)
array[idx] = ((array[idx] & 0x000000ff) << 16) |
((array[idx] & 0x0000ff00) << 8) |
((array[idx] & 0x00ff0000) >> 8) |
((array[idx] & 0xff000000) >> 16);
}
#endif
return 0; return 0;
} }