From 89a3647760ae0c42866b5e44eab63676adcd4c42 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Fri, 7 Mar 2008 23:23:42 +0000 Subject: * i386/i386/locore.S (syscall): Clear direction flag at entry. --- i386/i386/locore.S | 2 ++ 1 file changed, 2 insertions(+) (limited to 'i386') diff --git a/i386/i386/locore.S b/i386/i386/locore.S index eb97267..252ecaf 100644 --- a/i386/i386/locore.S +++ b/i386/i386/locore.S @@ -966,6 +966,8 @@ ENTRY(syscall) syscall_entry: pushf /* save flags as soon as possible */ syscall_entry_2: + cld /* clear direction flag */ + pushl %eax /* save system call number */ pushl $0 /* clear trap number slot */ -- cgit v1.2.3