<div dir="ltr">I have expanded on this a bit. I was not calling probe_irq_on() and probe_irq_off(). I am now wrapping the outb_p() calls:<div><br></div><div>mask = probe_irq_on(); </div><div>outb_p() ....</div><div><br></div>
<div>val = probe_irq_off(mask);</div><div><br></div><div>My mask is 0x3c78 (11110001111000 binary) but val is 0. </div><div><br></div><div>Behaviour is unchanged. </div><div><br></div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Jan 6, 2014 at 4:27 PM, Rajat Sharma <span dir="ltr">&lt;<a href="mailto:fs.rajat@gmail.com" target="_blank">fs.rajat@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>It would be nice to post the code when asking for debugging help. Looks like your interrupts are in masked state but when you unload the driver they are getting unmasked and hence you are receiving them on unload.<br>

<br></div>-Rajat<br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Jan 6, 2014 at 4:09 PM, Eric Fowler <span dir="ltr">&lt;<a href="mailto:eric.fowler@gmail.com" target="_blank">eric.fowler@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:12.666666984558105px">I am trying to figure out interrupts by writing a shadow of Rubini&#39;s &#39;short&#39; program. Recall that Rubini tells us to enable parallel port interrupts by wiring pins 9&amp;10 together, then writing binary data to the parallel port&#39;s address. </span><div style="font-family:arial,sans-serif;font-size:12.666666984558105px">


<br></div><div style="font-family:arial,sans-serif;font-size:12.666666984558105px">I am doing that, but: </div><div style="font-family:arial,sans-serif;font-size:12.666666984558105px">- I don&#39;t see interrupts when I write to the port</div>


<div style="font-family:arial,sans-serif;font-size:12.666666984558105px">- I do see one interrupt when I unload the driver (in the fop&#39;s .release method)</div><div style="font-family:arial,sans-serif;font-size:12.666666984558105px">


- This happens whether or not the pins are wired up. </div><div style="font-family:arial,sans-serif;font-size:12.666666984558105px"><br></div><div style="font-family:arial,sans-serif;font-size:12.666666984558105px">What is going on here?</div>


<div><br></div><div dir="ltr"><br></div>
</div>
<br></div></div>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">cc:NSA<br></div>
</div>