mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
"[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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user