[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86/64: Make BIOS call to declare our intention to enter long mode.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1202988289 0 # Node ID 55ae3b66b1b6e9039f13d9eec0b98864ca87ba6f # Parent 72f52dd2dba8e0a7ac616c75520e5b168ec1eb9e x86/64: Make BIOS call to declare our intention to enter long mode. Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- xen/arch/x86/boot/trampoline.S | 7 +++++++ 1 files changed, 7 insertions(+) diff -r 72f52dd2dba8 -r 55ae3b66b1b6 xen/arch/x86/boot/trampoline.S --- a/xen/arch/x86/boot/trampoline.S Thu Feb 14 11:14:17 2008 +0000 +++ b/xen/arch/x86/boot/trampoline.S Thu Feb 14 11:24:49 2008 +0000 @@ -155,6 +155,13 @@ 1: mov $(BOOT_TRAMPOLINE>>4),%a lidt bootsym(rm_idt) 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 + int $0x15 +#endif + /* * Do real-mode work: * 1. Get memory map. _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |