- Clear the direction flag previous each 'rep string' instruction.
authorHartmut Birr <osexpert@googlemail.com>
Wed, 4 Jun 2003 18:11:16 +0000 (18:11 +0000)
committerHartmut Birr <osexpert@googlemail.com>
Wed, 4 Jun 2003 18:11:16 +0000 (18:11 +0000)
svn path=/trunk/; revision=4837

reactos/ntoskrnl/ke/i386/syscall.S
reactos/ntoskrnl/mm/i386/memsafe.s

index 1d98653..d6bd49b 100644 (file)
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: syscall.S,v 1.10 2003/05/28 18:09:10 chorns Exp $
+/* $Id: syscall.S,v 1.11 2003/06/04 18:11:16 hbirr Exp $
  *
  * FILE:            ntoskrnl/hal/x86/syscall.s
  * PURPOSE:         2E trap handler
@@ -141,6 +141,7 @@ new_serviceInRange:
 
            /*  Copy the arguments from the user stack to the kernel stack  */
            movl %esp,%edi
+           cld
            rep  movsb
 
            /*  DS is now also kernel segment  */
@@ -190,6 +191,7 @@ new_shadowServiceInRange:
 
            /*  Copy the arguments from the user stack to the kernel stack  */
            movl %esp,%edi
+           cld
            rep movsb
 
            /*  DS is now also kernel segment  */
index f1c610f..248327b 100644 (file)
@@ -30,7 +30,8 @@ _MmSafeCopyFromUserUnsafeStart:
        /*
         * This is really a synthetic instruction since if we incur a
         * pagefault then eax will be set to an appropiate STATUS code
-        */ 
+        */
+       cld 
        rep movsb
 
 _MmSafeCopyFromUserRestart:
@@ -69,7 +70,8 @@ _MmSafeCopyToUserUnsafeStart:
        /*
         * This is really a synthetic instruction since if we incur a
         * pagefault then eax will be set to an appropiate STATUS code
-        */ 
+        */
+       cld 
        rep movsb
 
 _MmSafeCopyToUserRestart: