From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZoq7-0004PJ-AD for qemu-devel@nongnu.org; Sat, 17 Nov 2012 15:18:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZoq4-0005uW-82 for qemu-devel@nongnu.org; Sat, 17 Nov 2012 15:18:07 -0500 Received: from mail-oa0-f45.google.com ([209.85.219.45]:41028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZoq4-0005uK-2j for qemu-devel@nongnu.org; Sat, 17 Nov 2012 15:18:04 -0500 Received: by mail-oa0-f45.google.com with SMTP id i18so3534561oag.4 for ; Sat, 17 Nov 2012 12:18:03 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <20121117175025.GA12627@frosties> Date: Sat, 17 Nov 2012 23:18:03 +0300 Message-ID: From: Max Filippov Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] Can't switch to 64bit mode at boot, how to debug? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Goswin von Brederlow Cc: qemu-devel@nongnu.org On Sat, Nov 17, 2012 at 11:58 PM, Max Filippov wrote: > On Sat, Nov 17, 2012 at 9:50 PM, Goswin von Brederlow wrote: >> /* Enable PAE */ >> movl %cr4, %eax >> btsl $5, %eax >> movl %eax, %cr4 > > Interestingly with the current HEAD the code disappears after this instruction: ...only from gdb output. xp in qemu monitor still works, looks like the issue here is with code access for gdb. Otherwise it works for me both with the current HEAD, and with v1.1.0. I built your kernel like this: gcc -I. -m32 test.S -nodefaultlibs -nostartfiles -Wl,-N -Wl,-Ttext -Wl,100000 -Wl,--build-id=none -o test -- Thanks. -- Max