"[00:08] Stefan100: 5) Alex_Ionescu will have your head"

Well, no risk, no fun... ;-)
Implement RtlpGetStackLimits

svn path=/branches/ros-amd64-bringup/; revision=37426
This commit is contained in:
Timo Kreuzer
2008-11-18 00:31:22 +00:00
parent 83991b3750
commit 9726adc85e
2 changed files with 26 additions and 0 deletions
+13
View File
@@ -205,6 +205,19 @@ RtlpCaptureStackLimits(IN ULONG_PTR Ebp,
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 ************************************************************/
typedef struct _RTL_ATOM_HANDLE
+13
View File
@@ -435,6 +435,19 @@ RtlWalkFrameChain(OUT PVOID *Callers,
#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