summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-03-07 23:23:42 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:14 +0200
commit89a3647760ae0c42866b5e44eab63676adcd4c42 (patch)
treed37c32aed5e37d79895c23b129a15a4db1cfb299 /i386
parent445bb802adb5b1a55a0e65639f8c26d312fd0a13 (diff)
* i386/i386/locore.S (syscall): Clear direction flag at entry.
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/locore.S2
1 files changed, 2 insertions, 0 deletions
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 */