Author: tkreuzer
Date: Fri Jul 23 22:15:20 2010
New Revision: 48214
URL:
http://svn.reactos.org/svn/reactos?rev=48214&view=rev
Log:
[NTOSKRNL]
- Add amd64 definition of KiGetLinkedTrapFrame
- Add KeZeroPages and KiServiceExit and KiServiceExit2 stubs
- Add DemandZeroPde
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/amd64/ke.h
branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/stubs.c
branches/ros-amd64-bringup/reactos/ntoskrnl/ke/except.c
branches/ros-amd64-bringup/reactos/ntoskrnl/mm/amd64/init.c
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/amd64/ke.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/amd64/ke.h [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/amd64/ke.h [iso-8859-1]
Fri Jul 23 22:15:20 2010
@@ -95,6 +95,9 @@
#define KeGetTrapFramePc(TrapFrame) \
((TrapFrame)->Rip)
+
+#define KiGetLinkedTrapFrame(x) \
+ (PKTRAP_FRAME)((x)->Rdx)
#define KeGetContextReturnRegister(Context) \
((Context)->Rax)
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 Jul 23
22:15:20 2010
@@ -11,6 +11,32 @@
#define NDEBUG
#include <debug.h>
+
+VOID
+FASTCALL
+KeZeroPages(IN PVOID Address,
+ IN ULONG Size)
+{
+ /* Not using XMMI in this routine */
+ RtlZeroMemory(Address, Size);
+}
+
+VOID
+FASTCALL
+DECLSPEC_NORETURN
+KiServiceExit(IN PKTRAP_FRAME TrapFrame,
+ IN NTSTATUS Status)
+{
+ UNIMPLEMENTED;
+}
+
+VOID
+FASTCALL
+DECLSPEC_NORETURN
+KiServiceExit2(IN PKTRAP_FRAME TrapFrame)
+{
+ UNIMPLEMENTED;
+}
BOOLEAN
NTAPI
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/except.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/ke/except.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/ke/except.c [iso-8859-1] Fri Jul 23
22:15:20 2010
@@ -167,8 +167,6 @@
/* SYSTEM CALLS ***************************************************************/
-#ifndef _M_AMD64
-
NTSTATUS
NTAPI
NtRaiseException(IN PEXCEPTION_RECORD ExceptionRecord,
@@ -243,6 +241,5 @@
/* We don't actually make it here */
return Status;
}
-#endif
/* EOF */
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/amd64/init.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/amd64/init.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/amd64/init.c [iso-8859-1] Fri Jul 23
22:15:20 2010
@@ -29,6 +29,7 @@
/* Template PTE and PDE for a kernel page */
MMPTE ValidKernelPde = {.u.Hard.Valid = 1, .u.Hard.Write = 1, .u.Hard.Dirty = 1,
.u.Hard.Accessed = 1};
MMPTE ValidKernelPte = {.u.Hard.Valid = 1, .u.Hard.Write = 1, .u.Hard.Dirty = 1,
.u.Hard.Accessed = 1};
+MMPDE DemandZeroPde = {.u.Long = (MM_READWRITE <<
MM_PTE_SOFTWARE_PROTECTION_BITS)};
/* Sizes */
///SIZE_T MmSessionSize = MI_SESSION_SIZE;