Skip to content

Commit 0679260

Browse files
committed
[HAL/APIC] Set the profiling interrupt handler
Fixes hang when running mtdll_apitest NtStartProfile.
1 parent dca5194 commit 0679260

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hal/halx86/apic/halinit.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ HalpInitPhase0(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
5858
CLOCK2_LEVEL,
5959
HalpClockInterrupt,
6060
Latched);
61+
62+
/* Enable profile interrupt handler */
63+
HalpEnableInterruptHandler(IDT_DEVICE,
64+
0,
65+
APIC_PROFILE_VECTOR,
66+
PROFILE_LEVEL,
67+
HalpProfileInterrupt,
68+
Latched);
6169
}
6270

6371
VOID

0 commit comments

Comments
 (0)