Author: tkreuzer
Date: Mon Nov 17 18:31:22 2008
New Revision: 37426
URL:
http://svn.reactos.org/svn/reactos?rev=37426&view=rev
Log:
"[00:08] Stefan100: 5) Alex_Ionescu will have your head"
Well, no risk, no fun... ;-)
Implement RtlpGetStackLimits
Modified:
branches/ros-amd64-bringup/reactos/dll/ntdll/rtl/libsupp.c
branches/ros-amd64-bringup/reactos/ntoskrnl/rtl/libsupp.c
Modified: branches/ros-amd64-bringup/reactos/dll/ntdll/rtl/libsupp.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/n…
==============================================================================
--- branches/ros-amd64-bringup/reactos/dll/ntdll/rtl/libsupp.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/dll/ntdll/rtl/libsupp.c [iso-8859-1] Mon Nov 17
18:31:22 2008
@@ -204,6 +204,19 @@
*StackEnd = (ULONG_PTR)NtCurrentTeb()->Tib.StackBase;
return TRUE;
}
+
+#ifdef _AMD64_
+VOID
+NTAPI
+RtlpGetStackLimits(
+ OUT PULONG_PTR LowLimit,
+ OUT PULONG_PTR HighLimit)
+{
+ *LowLimit = (ULONG_PTR)NtCurrentTeb()->Tib.StackLimit;
+ *HighLimit = (ULONG_PTR)NtCurrentTeb()->Tib.StackBase;
+ return;
+}
+#endif
/* RTL Atom Tables ************************************************************/
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/rtl/libsupp.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/rtl/libsupp.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/rtl/libsupp.c [iso-8859-1] Mon Nov 17
18:31:22 2008
@@ -435,6 +435,19 @@
#endif
+#ifdef _AMD64_
+VOID
+NTAPI
+RtlpGetStackLimits(
+ OUT PULONG_PTR LowLimit,
+ OUT PULONG_PTR HighLimit)
+{
+ PKTHREAD CurrentThread = KeGetCurrentThread();
+ *HighLimit = (ULONG_PTR)CurrentThread->InitialStack;
+ *LowLimit = (ULONG_PTR)CurrentThread->StackLimit;
+}
+#endif
+
/* RTL Atom Tables ************************************************************/
NTSTATUS