Hello, On Tue, 02 Apr 2013 20:59:23 +0200 Phileas Fogg <phileas-fogg%mail.ru@localhost> wrote: > Dumb question, how do we add an indirection to openpic_write and > openpic_read ? > They do not accept any kind of this pointer or context. > Change interface or use global function pointers which can be set in > setup_openpic ? Here's something that at least works on my iBook G4. The G5's OpenPIC is found but that's about it ( I was more concerned to keep it working on 32bit hardware ) - needs more work before it can be committed ( no fastpath, other openpic variants in pic/ need to be adapted etc. ) but it adds what's needed to deal with a big endian OpenPIC. have fun Michael
Attachment:
openpic_be.patch
Description: Binary data