summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--i386/i386/locore.S2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6308670..5039840 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-03-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * i386/i386/locore.S (syscall): Clear direction flag at entry.
+
2008-02-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
* linux/src/drivers/block/triton.c (ide_init_triton): Enable Bus
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 */