[ros-diffs] [sginsberg] 35411: - Move kernel mode implementation of RtlpGetStackLimits from crt to ntoskrnl

sginsberg at svn.reactos.org sginsberg at svn.reactos.org
Sun Aug 17 20:01:49 CEST 2008


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.s?rev=35411&r1=35410&r2=35411&view=diff
==============================================================================
--- 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 at 8
-.globl _RtlpGetStackLimits at 8
-_RtlpGetStackLimits at 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.rbuild?rev=35411&r1=35410&r2=35411&view=diff
==============================================================================
--- 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?rev=35411&view=auto
==============================================================================
--- 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 at reactos.org)
+ */
+
+/* INCLUDES ******************************************************************/
+
+#include <ndk/asm.h>
+.intel_syntax noprefix
+
+/* FUNCTIONS *****************************************************************/
+
+.func RtlpGetStackLimits at 8
+.globl _RtlpGetStackLimits at 8
+_RtlpGetStackLimits at 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



More information about the Ros-diffs mailing list