https://git.reactos.org/?p=reactos.git;a=commitdiff;h=794f15e45f05729fc68f1c5288e17391fe14adb8

commit 794f15e45f05729fc68f1c5288e17391fe14adb8
Author:     Hervé Poussineau <[email protected]>
AuthorDate: Thu Jan 28 22:48:16 2021 +0100
Commit:     Hervé Poussineau <[email protected]>
CommitDate: Thu Jan 28 23:10:01 2021 +0100

    [NTOSKRNL] Fix link with GCC x64
    
    KeLowerIrql/KeRaiseIrqlToDpcLevel/KfRaiseIrql are defined as FORCEINLINE in 
ntoskrnl/ke/amd64/irql.c
    Use KxLowerIrql/KxRaiseIrqlToDpcLevel/KxRaiseIrql instead, which call their 
respective Ke*/Kf* counterparts.
---
 ntoskrnl/ntoskrnl.spec | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ntoskrnl/ntoskrnl.spec b/ntoskrnl/ntoskrnl.spec
index 2965a67ffbf..96660a3fea1 100644
--- a/ntoskrnl/ntoskrnl.spec
+++ b/ntoskrnl/ntoskrnl.spec
@@ -630,7 +630,7 @@
 @ stdcall KeLeaveCriticalRegion() _KeLeaveCriticalRegion
 @ stdcall KeLeaveGuardedRegion() _KeLeaveGuardedRegion
 @ extern KeLoaderBlock
-@ cdecl -arch=x86_64 -private KeLowerIrql(long)
+@ cdecl -arch=x86_64 -private KeLowerIrql(long) KxLowerIrql
 @ extern KeNumberProcessors
 @ stdcall -arch=i386,arm KeProfileInterrupt(ptr)
 @ stdcall KeProfileInterruptWithSource(ptr long)
@@ -644,7 +644,7 @@
 @ stdcall -arch=i386,arm KeQuerySystemTime(ptr)
 @ stdcall -arch=i386,arm KeQueryTickCount(ptr)
 @ stdcall KeQueryTimeIncrement()
-@ cdecl -arch=x86_64 -private KeRaiseIrqlToDpcLevel()
+@ cdecl -arch=x86_64 -private KeRaiseIrqlToDpcLevel() KxRaiseIrqlToDpcLevel
 @ stdcall KeRaiseUserException(long)
 @ stdcall KeReadStateEvent(ptr)
 @ stdcall KeReadStateMutant(ptr)
@@ -720,7 +720,7 @@
 @ fastcall -arch=i386,arm KefAcquireSpinLockAtDpcLevel(ptr)
 @ fastcall -arch=i386,arm KefReleaseSpinLockFromDpcLevel(ptr)
 @ stdcall -arch=i386 Kei386EoiHelper()
-@ cdecl -arch=x86_64 -private KfRaiseIrql(long)
+@ cdecl -arch=x86_64 -private KfRaiseIrql(long) KxRaiseIrql
 @ fastcall -arch=i386 KiEoiHelper(ptr) #ReactOS-Specific
 @ fastcall -arch=i386,arm KiAcquireSpinLock(ptr)
 @ extern KiBugCheckData

Reply via email to