x86, oprom: ensure DF is always cleared
authorMathias Krause <minipli@googlemail.com>
Sun, 1 Apr 2012 09:32:09 +0000 (11:32 +0200)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Mon, 2 Apr 2012 17:50:22 +0000 (19:50 +0200)
commit971804ed68347f4fe7ca985a3c924b28041a4079
tree2aca2a92d30e62c44b9f03c589f48bd2078b015a
parent74a0efe09a203959d5ab4879e4c1cf139c93b410
x86, oprom: ensure DF is always cleared

The Option ROM might mess with the EFLAGS register and break assumptions
the C part of coreboot implicitly has, e.g. the state of the direction
flag.

Prevent Option ROMs from confusing coreboot by restoring the old EFLAGS
value after the Option ROMs has finished and always clear the direction
flag before calling the C part of the interrupt handler.

Change-Id: I84663be6681b17f95f48d93f0b730e443336b4a8
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Reviewed-on: http://review.coreboot.org/837
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
src/devices/oprom/x86_asm.S