Skip to content

Demonstration of triggering non-maskable interrupts using nt&hal API on windows.

Notifications You must be signed in to change notification settings

gmh5225/NMI-nmi_callback

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nmi_callback

This driver will fire a non-maskable interrupt (NMI) on your 1st cpu core and attempt to handle it using an NMI callback. If it succeeds, you will see following result in WinDbg:

alt text

In order to get this done, i am doing the following:

  1. Allocate KAFFINITY_EX structure.
  2. Pass it to KeInitializeAffinityEx.
  3. Add the CPU core the NMI should be run at to the affinity, by calling KeAddProcessorAffinityEx.
  4. Finally calling HalSendNMI to send it. parameter is the affinity of course.

Note that all of these APIs listed above are not publicly documented so there might be inconsistencies on return value, prototype etc...

About

Demonstration of triggering non-maskable interrupts using nt&hal API on windows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%