From b49e2bc4509ce9711fcb47e2c82118265bbf931c Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Wed, 4 Jun 2003 18:11:16 +0000 Subject: [PATCH] - Clear the direction flag previous each 'rep string' instruction. svn path=/trunk/; revision=4837 --- reactos/ntoskrnl/ke/i386/syscall.S | 4 +++- reactos/ntoskrnl/mm/i386/memsafe.s | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/reactos/ntoskrnl/ke/i386/syscall.S b/reactos/ntoskrnl/ke/i386/syscall.S index 1d98653fbd3..d6bd49b159e 100644 --- a/reactos/ntoskrnl/ke/i386/syscall.S +++ b/reactos/ntoskrnl/ke/i386/syscall.S @@ -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 */ diff --git a/reactos/ntoskrnl/mm/i386/memsafe.s b/reactos/ntoskrnl/mm/i386/memsafe.s index f1c610f9c83..248327b1e26 100644 --- a/reactos/ntoskrnl/mm/i386/memsafe.s +++ b/reactos/ntoskrnl/mm/i386/memsafe.s @@ -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: