Hi everybody, i'm trying to build a "device driver" for a toy device that perform a sum of two number. I use the simulator as library and the linux that you have modified. The module that i wrote whitin the ubuntu image that you supplied ( at that site: http://opencores.org/or1k/Ubuntu_VirtualBox-image_updates_and_information without doing any update from your repository) works fine. However when i try it with the linux get from your git repository (which is the 3.4 version against the old 3.1 like in the previous case), when i request an IRQ i get error 22: invalid parameter from the insmod command.
The code (striped form useless statement) is in the following link: http://pastebin.com/9VxAH3zm And i added the following part in the or1ksim.cfg taken from the linux/arch/openrisc folder: section generic enabled = 1 baseaddr = 0x30000000 size = 0x01000000 name = "acc" byte_enabled = 1 hw_enabled = 1 word_enabled = 1 end Can anyone tell me what is changed, or what i do wrong, in the module for the 3.4 version? Thank you, Davide. PS: I know that the irq_request should not be done in the module initialization, and that the size is huge, but is all for experimentig ;p -- View this message in context: http://openrisc.2316802.n4.nabble.com/Interrupt-handler-in-linux-3-4-tp4641168.html Sent from the OpenRISC mailing list archive at Nabble.com. _______________________________________________ OpenRISC mailing list [email protected] http://lists.openrisc.net/listinfo/openrisc
