Author: sginsberg Date: Sun Aug 17 13:01:49 2008 New Revision: 35411
URL: http://svn.reactos.org/svn/reactos?rev=35411&view=rev Log: - Move kernel mode implementation of RtlpGetStackLimits from crt to ntoskrnl
Added: trunk/reactos/ntoskrnl/rtl/i386/ (with props) trunk/reactos/ntoskrnl/rtl/i386/stack.S (with props) Modified: trunk/reactos/lib/sdk/crt/except/i386/seh.s trunk/reactos/ntoskrnl/ntoskrnl-generic.rbuild
Modified: trunk/reactos/lib/sdk/crt/except/i386/seh.s URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/except/i386/seh... ============================================================================== --- trunk/reactos/lib/sdk/crt/except/i386/seh.s [iso-8859-1] (original) +++ trunk/reactos/lib/sdk/crt/except/i386/seh.s [iso-8859-1] Sun Aug 17 13:01:49 2008 @@ -438,31 +438,3 @@ pop ebp ret .endfunc - -// -// -// REMOVE ME REMOVE ME REMOVE ME REMOVE ME REMOVE ME REMOVE ME REMOVE ME -// -// -.func RtlpGetStackLimits@8 -.globl _RtlpGetStackLimits@8 -_RtlpGetStackLimits@8: - - /* Get the current thread */ - mov eax, [fs:KPCR_CURRENT_THREAD] - - /* Get the stack limits */ - mov ecx, [eax+KTHREAD_STACK_LIMIT] - mov edx, [eax+KTHREAD_INITIAL_STACK] - sub edx, SIZEOF_FX_SAVE_AREA - - /* Return them */ - mov eax, [esp+4] - mov [eax], ecx - - mov eax, [esp+8] - mov [eax], edx - - /* return */ - ret 8 -.endfunc
Modified: trunk/reactos/ntoskrnl/ntoskrnl-generic.rbuild URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ntoskrnl-generic.r... ============================================================================== --- trunk/reactos/ntoskrnl/ntoskrnl-generic.rbuild [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/ntoskrnl-generic.rbuild [iso-8859-1] Sun Aug 17 13:01:49 2008 @@ -442,6 +442,11 @@ <file>rtlexcpt.c</file> </directory> </if> + <if property="ARCH" value="i386"> + <directory name="i386"> + <file>stack.S</file> + </directory> + </if> <file>libsupp.c</file> <file>misc.c</file> </directory>
Propchange: trunk/reactos/ntoskrnl/rtl/i386/ ------------------------------------------------------------------------------ --- bugtraq:logregex (added) +++ bugtraq:logregex Sun Aug 17 13:01:49 2008 @@ -1,0 +1,2 @@ +([Ii]ssue|[Bb]ug)s? #?(\d+)(,? ?#?(\d+))*(,? ?(and |or )?#?(\d+))? +(\d+)
Propchange: trunk/reactos/ntoskrnl/rtl/i386/ ------------------------------------------------------------------------------ bugtraq:message = See issue #%BUGID% for more details.
Propchange: trunk/reactos/ntoskrnl/rtl/i386/ ------------------------------------------------------------------------------ bugtraq:url = http://www.reactos.org/bugzilla/show_bug.cgi?id=%BUGID%
Propchange: trunk/reactos/ntoskrnl/rtl/i386/ ------------------------------------------------------------------------------ tsvn:logminsize = 10
Added: trunk/reactos/ntoskrnl/rtl/i386/stack.S URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/rtl/i386/stack.S?r... ============================================================================== --- trunk/reactos/ntoskrnl/rtl/i386/stack.S (added) +++ trunk/reactos/ntoskrnl/rtl/i386/stack.S [iso-8859-1] Sun Aug 17 13:01:49 2008 @@ -1,0 +1,37 @@ +/* + * COPYRIGHT: See COPYING in the top level directory + * PROJECT: ReactOS Kernel + * FILE: ntoskrnl/rtl/i386/seh.s + * PURPOSE: Stack Support for RTL + * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org) + */ + +/* INCLUDES ******************************************************************/ + +#include <ndk/asm.h> +.intel_syntax noprefix + +/* FUNCTIONS *****************************************************************/ + +.func RtlpGetStackLimits@8 +.globl _RtlpGetStackLimits@8 +_RtlpGetStackLimits@8: + + /* Get the current thread */ + mov eax, [fs:KPCR_CURRENT_THREAD] + + /* Get the stack limits */ + mov ecx, [eax+KTHREAD_STACK_LIMIT] + mov edx, [eax+KTHREAD_INITIAL_STACK] + sub edx, SIZEOF_FX_SAVE_AREA + + /* Return them */ + mov eax, [esp+4] + mov [eax], ecx + + mov eax, [esp+8] + mov [eax], edx + + /* return */ + ret 8 +.endfunc
Propchange: trunk/reactos/ntoskrnl/rtl/i386/stack.S ------------------------------------------------------------------------------ svn:eol-style = native