All of lore.kernel.org
 help / color / mirror / Atom feed
From: Goswin von Brederlow <goswin-v-b@web.de>
To: Max Filippov <jcmvbkbc@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Can't switch to 64bit mode at boot, how to debug?
Date: Sat, 17 Nov 2012 22:55:58 +0100	[thread overview]
Message-ID: <20121117215557.GA5632@frosties> (raw)
In-Reply-To: <CAMo8BfKNHJWE-2xb_zSbghoX51-eBTV+n7S0buqtDuSGnc=UVQ@mail.gmail.com>

On Sat, Nov 17, 2012 at 11:18:03PM +0300, Max Filippov wrote:
> On Sat, Nov 17, 2012 at 11:58 PM, Max Filippov <jcmvbkbc@gmail.com> wrote:
> > On Sat, Nov 17, 2012 at 9:50 PM, Goswin von Brederlow <goswin-v-b@web.de> 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
> 

Args, the problem was that I used "qemu", which currently links to
qemu-system-i386 instead of "qemu-system-x86_64". A some point in the last
year the alternative setting must have reverted from x86_64 to the default
of i386.

MfG
	Goswin

  reply	other threads:[~2012-11-17 21:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-17 17:50 [Qemu-devel] Can't switch to 64bit mode at boot, how to debug? Goswin von Brederlow
2012-11-17 19:58 ` Max Filippov
2012-11-17 20:18   ` Max Filippov
2012-11-17 21:55     ` Goswin von Brederlow [this message]
2012-11-17 22:09   ` Goswin von Brederlow
2012-11-17 22:38     ` Max Filippov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121117215557.GA5632@frosties \
    --to=goswin-v-b@web.de \
    --cc=jcmvbkbc@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.