debuggers.hg
changeset 17089:55ae3b66b1b6
x86/64: Make BIOS call to declare our intention to enter long mode.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Thu Feb 14 11:24:49 2008 +0000 (2008-02-14) |
parents | 72f52dd2dba8 |
children | 8210e430be2b 9e9ba5185ef1 |
files | xen/arch/x86/boot/trampoline.S |
line diff
1.1 --- a/xen/arch/x86/boot/trampoline.S Thu Feb 14 11:14:17 2008 +0000 1.2 +++ b/xen/arch/x86/boot/trampoline.S Thu Feb 14 11:24:49 2008 +0000 1.3 @@ -155,6 +155,13 @@ 1: mov $(BOOT_TRAMPOLINE>>4),%a 1.4 lidt bootsym(rm_idt) 1.5 sti 1.6 1.7 +#if defined(__x86_64__) 1.8 + /* Declare that our target operating mode is long mode. */ 1.9 + movw $0xec00,%ax # declare target operating mode 1.10 + movw $0x0002,%bx # long mode 1.11 + int $0x15 1.12 +#endif 1.13 + 1.14 /* 1.15 * Do real-mode work: 1.16 * 1. Get memory map.