Mailinglist Archive: radeonhd (436 mails)
| < Previous | Next > |
[radeonhd] Driver doesn't work on big-endian machines
- From: Ales Fiala <ales.fiala@xxxxxx>
- Date: Tue, 29 Jul 2008 15:11:12 -0600
- Message-id: <488F8770.10302@xxxxxx>
Is there any plan to make the radeonhd driver work on big-endian
machines?
I am particularly talking about the code that accesses the atombios
data structures, which are little-endian. An example would be a
line like the following, from rhdAtomGetTables():
unsigned int atom_romhdr_off = *(unsigned short*)
(base + OFFSET_TO_POINTER_TO_ATOM_ROM_HEADER);
This will retrieve the offset incorrectly byte-swapped on a
big-endian machine.
I think accesses like these need to be wrapped in a macro.
Ales Fiala
Hewlett-Packard
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx
machines?
I am particularly talking about the code that accesses the atombios
data structures, which are little-endian. An example would be a
line like the following, from rhdAtomGetTables():
unsigned int atom_romhdr_off = *(unsigned short*)
(base + OFFSET_TO_POINTER_TO_ATOM_ROM_HEADER);
This will retrieve the offset incorrectly byte-swapped on a
big-endian machine.
I think accesses like these need to be wrapped in a macro.
Ales Fiala
Hewlett-Packard
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx
| < Previous | Next > |