From 013d381e3ce3708c9cdf4978706066909b9947b1 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 17 Jul 2007 13:46:37 +0100 Subject: [PATCH] Real-mode code might set the direction flag, which would cause carnage. --- src/arch/i386/transitions/librm.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/arch/i386/transitions/librm.S b/src/arch/i386/transitions/librm.S index e916ba57..2072ee3e 100644 --- a/src/arch/i386/transitions/librm.S +++ b/src/arch/i386/transitions/librm.S @@ -472,6 +472,9 @@ real_call: call *rc_function pushal + /* For sanity's sake, clear the direction flag as soon as possible */ + cld + /* Switch to protected mode and move register dump back to PM stack */ movl $RC_OFFSET_RETADDR, %ecx pushl $1f