Reputation: 1466
I'm new to linux kernel programming, and for quite a long time I'm trying to write module, which should do the folowing: replace default irq handler with my own and restore default one after that, work with IDT (try to save idt replace it with my own one, even without changing it's content). I've spent a lot of time trying to do this, but did'n managed to do anything. So I wonder if it is possible at all or maybe new versions of kernel firbids doing things like these?
Upvotes: 0
Views: 235
Reputation: 1466
Well, I've spent a lot of time on this, so the answer is no. Do not try to. You actually can replace handler, but you can't restore it. I've found a possibility to restore it, but required structures and functions are Translate not available (meaning they cant be used, after kernel is already assembled).
Upvotes: 1