[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.1-testing] x86/64: Make BIOS call to declare our intention to enter long mode.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1203344694 0
# Node ID 64bb15c8521a0ca4106f3d6c369fc17148ce0a81
# Parent  6bec8050d3a29296e99eea26bc41cde6b0e806df
x86/64: Make BIOS call to declare our intention to enter long mode.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   17051:55ae3b66b1b6e9039f13d9eec0b98864ca87ba6f
xen-unstable date:        Thu Feb 14 11:24:49 2008 +0000
---
 xen/arch/x86/boot/trampoline.S |    7 +++++++
 1 files changed, 7 insertions(+)

diff -r 6bec8050d3a2 -r 64bb15c8521a xen/arch/x86/boot/trampoline.S
--- a/xen/arch/x86/boot/trampoline.S    Mon Feb 18 14:23:34 2008 +0000
+++ b/xen/arch/x86/boot/trampoline.S    Mon Feb 18 14:24:54 2008 +0000
@@ -147,6 +147,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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.