Files
exectos/xtoskrnl/rtl/amd64/dispatch.cc
Aiken Harris 9518e7da8e
Some checks failed
Builds / ExectOS (amd64, debug) (push) Failing after 21s
Builds / ExectOS (amd64, release) (push) Failing after 20s
Builds / ExectOS (i686, debug) (push) Failing after 19s
Builds / ExectOS (i686, release) (push) Failing after 18s
Migrate RTL subsystem to C++
2025-09-11 18:28:24 +02:00

34 lines
918 B
C++

/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: xtoskrnl/rtl/amd64/dispatch.cc
* DESCRIPTION: Dispatching support for AMD64 architecture
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
*/
#include <xtos.hh>
/**
* Returns the stack limits for the current thread.
*
* @param StackBase
* Supplies a pointer to memory area, where the stack base will be stored.
*
* @param StackLimit
* Suppliws a pointer to memory area, where the stack limit will be stored.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTAPI
VOID
RTL::Dispatcher::GetStackLimits(OUT PULONG_PTR StackBase,
OUT PULONG_PTR StackLimit)
{
PKTHREAD Thread = KeGetCurrentThread();
*StackBase = (ULONG_PTR)Thread->StackBase;
*StackLimit = (ULONG_PTR)Thread->StackLimit;
}