> I'm working on the Savage Quest driver right now. > After implementing support for the missing PAM registers and fixing a collection of > things in the IDE controller code, it starts booting and eventually I see an IRQ2 > acknowledge request. > However, the "pic8259->read_slave_ack_func(irq);" call is exiting with this message: > > "Error: bad downcast<> or device<>. Tried to convert the device ic8259_1 of > type class device_t * to a class savquest_state *, which are incompatible." > > The only other drivers that implement the 8259 are also skeletons, and I haven't > managed to get any of them to trigger an acknowledge request to see if they fail > similarly. > What have I not implemented yet that might fix this?
without the actual source is hard to tell exactly where the problem is. I'd start from checking that your savquest_state class contains a device_t pic8259 member, so that you can later call state->pic8259->read_slave_ack_func as above.
|