Author: tkreuzer
Date: Sat Dec 5 19:17:59 2009
New Revision: 44414
URL:
http://svn.reactos.org/svn/reactos?rev=44414&view=rev
Log:
[KE]
Don't use fastcall functions
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/spinlock.c
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/spinlock.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/spinlock.c [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/spinlock.c [iso-8859-1] Sat Dec
5 19:17:59 2009
@@ -24,8 +24,10 @@
KeAcquireSpinLockRaiseToSynch(PKSPIN_LOCK SpinLock)
{
#ifndef CONFIG_SMP
+ KIRQL OldIrql;
/* Simply raise to dispatch */
- return KfRaiseIrql(DISPATCH_LEVEL);
+ KeRaiseIrql(DISPATCH_LEVEL, &OldIrql);
+ return OldIrql;
#else
UNIMPLEMENTED;
#endif
@@ -39,8 +41,10 @@
KeAcquireSpinLockRaiseToDpc(PKSPIN_LOCK SpinLock)
{
#ifndef CONFIG_SMP
+ KIRQL OldIrql;
/* Simply raise to dispatch */
- return KfRaiseIrql(DISPATCH_LEVEL);
+ KeRaiseIrql(DISPATCH_LEVEL, &OldIrql);
+ return OldIrql;
#else
UNIMPLEMENTED;
#endif
@@ -56,7 +60,7 @@
{
#ifndef CONFIG_SMP
/* Simply lower IRQL back */
- KfLowerIrql(OldIrql);
+ KeLowerIrql(OldIrql);
#else
UNIMPLEMENTED;
#endif
@@ -69,8 +73,10 @@
KeAcquireQueuedSpinLock(IN KSPIN_LOCK_QUEUE_NUMBER LockNumber)
{
#ifndef CONFIG_SMP
+ KIRQL OldIrql;
/* Simply raise to dispatch */
- return KfRaiseIrql(DISPATCH_LEVEL);
+ KeRaiseIrql(DISPATCH_LEVEL, &OldIrql);
+ return OldIrql;
#else
UNIMPLEMENTED;
#endif
@@ -83,8 +89,10 @@
KeAcquireQueuedSpinLockRaiseToSynch(IN KSPIN_LOCK_QUEUE_NUMBER LockNumber)
{
#ifndef CONFIG_SMP
+ KIRQL OldIrql;
/* Simply raise to dispatch */
- return KfRaiseIrql(DISPATCH_LEVEL);
+ KeRaiseIrql(DISPATCH_LEVEL, &OldIrql);
+ return OldIrql;
#else
UNIMPLEMENTED;
#endif
@@ -99,7 +107,7 @@
{
#ifndef CONFIG_SMP
/* Simply raise to dispatch */
- LockHandle->OldIrql = KfRaiseIrql(DISPATCH_LEVEL);
+ KeRaiseIrql(DISPATCH_LEVEL, &LockHandle->OldIrql);
#else
UNIMPLEMENTED;
#endif
@@ -114,7 +122,7 @@
{
#ifndef CONFIG_SMP
/* Simply raise to synch */
- LockHandle->OldIrql = KfRaiseIrql(SYNCH_LEVEL);
+ KeRaiseIrql(SYNCH_LEVEL, &LockHandle->OldIrql);
#else
UNIMPLEMENTED;
#endif
@@ -129,7 +137,7 @@
{
#ifndef CONFIG_SMP
/* Simply lower IRQL back */
- KfLowerIrql(OldIrql);
+ KeLowerIrql(OldIrql);
#else
UNIMPLEMENTED;
#endif
@@ -143,7 +151,7 @@
{
#ifndef CONFIG_SMP
/* Simply lower IRQL back */
- KfLowerIrql(LockHandle->OldIrql);
+ KeLowerIrql(LockHandle->OldIrql);
#else
UNIMPLEMENTED;
#endif
@@ -158,7 +166,7 @@
{
#ifndef CONFIG_SMP
/* Simply raise to dispatch */
- *OldIrql = KfRaiseIrql(DISPATCH_LEVEL);
+ KeRaiseIrql(DISPATCH_LEVEL, OldIrql);
/* Always return true on UP Machines */
return TRUE;
@@ -176,7 +184,7 @@
{
#ifndef CONFIG_SMP
/* Simply raise to dispatch */
- *OldIrql = KfRaiseIrql(DISPATCH_LEVEL);
+ KeRaiseIrql(DISPATCH_LEVEL, OldIrql);
/* Always return true on UP Machines */
return TRUE;