]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86-64, reboot: Be more paranoid in 64-bit reboot=bios
authorH. Peter Anvin <hpa@zytor.com>
Thu, 21 Jun 2012 17:25:03 +0000 (10:25 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 21 Jun 2012 17:25:03 +0000 (10:25 -0700)
commit9751d7627582fc1cc64625d63bde9528c14f1544
tree33b0b58eb47f4bda4478c2d658019a1d2986cad8
parent2b1b712f050eaf0ac576591281446dc960c0afc5
x86-64, reboot: Be more paranoid in 64-bit reboot=bios

Be a bit more paranoid in the transition back to 16-bit mode.  In
particular, in case the kernel is residing above the 4 GiB mark,
switch to the trampoline GDT, and make the jump after turning off
paging a far jump.  In theory, none of this should matter, but it is
exactly the kind of things that broken SMM or virtualization software
could trip up on.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Link: http://lkml.kernel.org/r/tip-jopx7y6g6dbcx4tpal8q0jlr@git.kernel.org
arch/x86/realmode/rm/reboot.S