]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[prefix] Set the "size" bit in the GDT entry for the flat data segment
authorMichael Brown <mcb30@ipxe.org>
Tue, 1 Mar 2011 16:03:44 +0000 (16:03 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 1 Mar 2011 16:09:09 +0000 (16:09 +0000)
commit90563f69be960d3b6fd9021445aa9ecdf6eb5db7
treecd2e99c81035a24177e23aff6bb5dc5bb819e9e5
parent17ef28414f67bd159128345445b0019e729ef018
[prefix] Set the "size" bit in the GDT entry for the flat data segment

The "size" bit (aka the D/B) bit should (as far as I can tell) be
irrelevant for accesses to a non-code, non-stack, expand-upwards
segment.  However, VirtualBox fails on some accesses via this segment
if this bit is not set.

This change allows iPXE to boot under VirtualBox without having to
disable VT-x/AMD-V support.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/prefix/libprefix.S