making Target Mode BIOS call. Fixes boot problems with some buggy
BIOSes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset: 17325:
ffcc213f87112a9bcae2524dc9dd08bc13911d8c
xen-unstable date: Mon Mar 31 16:32:33 2008 +0100
sti
#if defined(__x86_64__)
- /* Declare that our target operating mode is long mode. */
- movw $0xec00,%ax # declare target operating mode
- movw $0x0002,%bx # long mode
+ /*
+ * Declare that our target operating mode is long mode.
+ * Initialise 32-bit registers since some buggy BIOSes depend on it.
+ */
+ movl $0xec00,%eax # declare target operating mode
+ movl $0x0002,%ebx # long mode
int $0x15
#endif