NMI via task gate

Stefan Scheler stefan at scheler.com
Sat Aug 4 11:50:36 CEST 2007


> I'd suggest to use a task gate for your NMI and run it on a completely
> different stack. Because there are parts of code that are extremely
> sensible to NMIs and this is basically the sysenter path of the Fiasco
> kernel.

I tried that (see attached patch). Is that the correct way of
implementing this? It works exactly once. When I reset the counters the
second time I get "APIC error 00000000(00000000)" and the machine freezes.

Stefan Scheler
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pmi-taskgate.diff
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20070804/4705bad8/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20070804/4705bad8/attachment-0001.asc>

More information about the l4-hackers mailing list