|
From: | Paolo Bonzini |
Subject: | [Qemu-devel] Re: [PATCH 5/6] Convert linux bootrom to external rom and fw_cfg |
Date: | Fri, 13 Nov 2009 07:37:39 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Lightning/1.0pre Thunderbird/3.0b4 |
On 11/12/2009 09:53 PM, Alexander Graf wrote:
+ /* Set DS to SS+SP - 0x10, so we can write our GDT descriptor there */ + mov %ss, %eax + shl $4, %eax + add %esp, %eax + sub $0x10, %eax + shr $4, %eax
Dead code? Or wrong comment and missing mov %eax, %gs?Also, I know this is running with disabled interrupts, but why set %gs just below the stack instead of decrementing %esp?
+ /* Now create the GDT descriptor */ + mov %cs, %eax
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |