Skip to contentSkip to conversation

x86-64 far jmp

Qemu-devel [email protected] 1 participant 1 message Mar 4, 2006

lore
Share & tools
lore
#0 lore raw

Hi there,

first of all: thanks for your excellent work of qemu. I'm using it since many months for a self written compiler and operating system (both very slim-lined). Testing a far-jump, qemu x86_64 works fine in 32 bit mode with 32 bit code, but in long mode the system hangs. Disassembly of the code is different to the coded, so perhaps this is a bug and my reason today to mail:
FF 2C 24 58 66 B8 20 00 8E D8
is disassembled by qemu to
ljmp *(%si)
and $0x58,al
mov $D88E0020,%eax
instead of
ljmp *(%rsp)

 pop  %rax
 mov  $0x20,%ax
 mov  %ax,%ds

Version used is 0.8.0 for windows (same with 0.7.2 for windows).

The far jump is only used to load a new code selector (after creating a new GDT). Is there another way to do this that works with qemu?

Thank you in advance
Stefan

Signature · 2 lines
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++