freebsd-nq/sys/boot/i386
Dimitry Andric dbfc29017c When rebooting (exiting) from the BTX loader, make sure to restore the
GDT from the correct segment, otherwise a triple fault would be caused.
In some virtual environments (VMware, VirtualBox, etc) this could lead
to a unhandled error or hang in the guest emulation software.

Thanks to avg and jhb for a few hints in the right direction.

Noticed by:	Jeremy Chadwick <jdc@koitsu.org> (and many others)
MFC after:	1 week
2013-04-24 17:20:45 +00:00
..
boot0 Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to 2012-02-28 18:30:18 +00:00
boot0ext
boot0sio
boot2 Shrink boot2 by 8 bytes, by eliminating some unneeded instructions in 2012-11-08 23:21:02 +00:00
btx When rebooting (exiting) from the BTX loader, make sure to restore the 2013-04-24 17:20:45 +00:00
cdboot Fix sys/boot/i386/cdboot/cdboot.S compilation with clang after r235219. 2012-05-11 18:07:23 +00:00
common boot: use packed attribute for edd_params* structures and their substructures 2012-11-14 11:05:16 +00:00
efi Fix linking of loader.efi. 2013-01-22 04:14:27 +00:00
gptboot add detection of serial console presence to btx and boot2-like blocks 2012-10-06 20:08:29 +00:00
gptzfsboot Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to 2012-02-28 18:30:18 +00:00
kgzldr
libfirewire MF tbemd: Minor tweaks, prefer MACHINE_CPUARCH generally to MACHINE_ARCH 2010-08-23 01:42:09 +00:00
libi386 Always update the hw.uart.console hint anytime a change is made to the 2013-01-23 18:34:21 +00:00
loader Hook in new files menusets.4th and manual. 2012-11-07 02:14:03 +00:00
mbr Use -Wl,-N instead of the undocumented -N option for GCC. 2010-06-03 17:42:32 +00:00
pmbr When GPT signature is invalid in the primary GPT header, then try to 2012-08-05 12:57:38 +00:00
pxeldr cdboot, pxeldr: make use of bootargs.h instead of redefining flag constants 2012-05-10 09:47:04 +00:00
zfsboot add detection of serial console presence to btx and boot2-like blocks 2012-10-06 20:08:29 +00:00
zfsloader For consistency, change all 'i386' and MACHINE_ARCH to x86. 2010-08-31 19:01:12 +00:00
Makefile Don't build zfsboot, gptzfsboot, and zfsloader if WITHOUT_ZFS is enabled. 2009-12-22 20:56:33 +00:00
Makefile.inc boot: use -march=i386 for both i386 and amd64 builds 2012-10-20 16:57:23 +00:00