From: Paul M. <le...@li...> - 2007-11-10 15:22:38
|
On Sat, Nov 10, 2007 at 02:41:15PM +0000, Adrian McMenamin wrote: > I am investigating this further, but what seems like a perfectly good > command: > > insw(GDROM_DATA_REG, &sense, 10); > > Where GDROM_DATA_REG is 0xA5F7080, sense is an array of 5 shorts, is > oopsing after what looks like an odd translation of the port address - > anybody know more or do I need to parch? (Or have I got this all wrong). > That's your problem, insw goes through ioport_map(), which in the generic path wraps to the generic_io_base, which the Dreamcast sets to P2. The bogus address you're hitting is a result of the address wrapping around. So I suggest you change your DATA_REG to 0x05f7080 and see how that goes. |