btx: Add FreeBSD's r256293 (fixes boot on Jetway NF81 mobo with RAID enabled).
authorSascha Wildner <saw@online.de>
Tue, 15 Oct 2013 19:00:10 +0000 (21:00 +0200)
committerSascha Wildner <saw@online.de>
Tue, 15 Oct 2013 19:00:10 +0000 (21:00 +0200)
commit9f163f397ee13c569d290e7d020b84cd17db4868
tree799d82adb28e43ed340d3561389caaf42f817947
parent210a08693dd2d83a721af5f947331f04730b4e16
btx: Add FreeBSD's r256293 (fixes boot on Jetway NF81 mobo with RAID enabled).

FreeBSD's commit msg:

Sanitize the %eflags returned by BIOS routines.  Some BIOS routines enter
protected mode and may leave protected-mode-specific flags like PSL_NT set
when they return to real mode.  This can cause a fault when BTX re-enters
protected mode after the BIOS mode returns.

Reported-by: Julian Pidancet <julian.pidancet@gmail.com>
Taken-from:  FreeBSD
sys/boot/pc32/btx/btx/btx.S