Author: tkreuzer
Date: Fri Jan 29 14:23:00 2010
New Revision: 45318
URL:
http://svn.reactos.org/svn/reactos?rev=45318&view=rev
Log:
Fix parameters of KeUpdateSystemTime, make it regparm only for X86 ans remove the now
deprecated stub.
Add a few stubs for MSVC
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/stubs.c
branches/ros-amd64-bringup/reactos/ntoskrnl/ke/time.c
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/stubs.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/stubs.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/stubs.c [iso-8859-1] Fri Jan 29
14:23:00 2010
@@ -38,16 +38,6 @@
UNIMPLEMENTED;
return FALSE;
}
-
-VOID
-NTAPI
-KeUpdateSystemTime(IN PKTRAP_FRAME TrapFrame,
- IN KIRQL Irql,
- IN ULONG Increment)
-{
- UNIMPLEMENTED;
-}
-
NTSTATUS
NTAPI
@@ -161,3 +151,36 @@
{
return (USHORT)(ListHead->Alignment & 0xffff);
}
+
+#ifdef _MSC_VER
+void
+__GSHandlerCheck()
+{
+}
+
+int __security_cookie;
+
+void
+__security_check_cookie()
+{
+}
+
+
+NTKERNELAPI
+PSLIST_ENTRY
+ExpInterlockedPopEntrySList(
+ PSLIST_HEADER ListHead)
+{
+ return 0;
+}
+
+NTKERNELAPI
+PSLIST_ENTRY
+ExpInterlockedPushEntrySList(
+ PSLIST_HEADER ListHead,
+ PSLIST_ENTRY ListEntry)
+{
+ return 0;
+}
+
+#endif
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/time.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/ke/time.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/ke/time.c [iso-8859-1] Fri Jan 29 14:23:00
2010
@@ -19,7 +19,7 @@
/* FUNCTIONS ******************************************************************/
-#ifndef _M_ARM
+#ifdef _M_IX86
VOID
__attribute__((regparm(3)))
KeUpdateSystemTimeHandler(IN ULONG Increment,
@@ -29,8 +29,8 @@
VOID
NTAPI
KeUpdateSystemTime(IN PKTRAP_FRAME TrapFrame,
- IN ULONG Increment,
- IN KIRQL Irql)
+ IN KIRQL Irql,
+ IN ULONG Increment)
#endif
{
PKPRCB Prcb = KeGetCurrentPrcb();
@@ -133,7 +133,7 @@
Prcb->InterruptCount++;
/* Check if we came from user mode */
-#if !defined(_M_ARM) && !defined(_M_AMD64)
+#if defined(_M_IX86)
if ((TrapFrame->SegCs & MODE_MASK) || (TrapFrame->EFlags &
EFLAGS_V86_MASK))
#else
if (TrapFrame->PreviousMode == UserMode)