From: A Streetcar Named <desire@gmail.com>
To: Keir Fraser <keir.fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.sourceforge.net
Subject: Re: problems compiling xen on a crusoe
Date: Wed, 17 Nov 2004 21:36:34 +0800 [thread overview]
Message-ID: <bf77ac7b0411170536101db598@mail.gmail.com> (raw)
In-Reply-To: <E1CTi63-0005Yj-00@mta1.cl.cam.ac.uk>
On Mon, 15 Nov 2004 14:44:47 +0000, Keir Fraser
<keir.fraser@cl.cam.ac.uk> wrote:
> >
> > The infinite loops in x86_32.S did make a difference at the following
> > line though:
> > 128 start_paging:
> > 129 mov $idle_pg_table-__PAGE_OFFSET,%eax
> > 130 mov %eax,%cr3
> > 131 mov $0x80050033,%eax /* hi-to-lo: PG,AM,WP,NE,ET,MP,PE */
> > 132 mov %eax,%cr0
> > 133 jmp 1f
> > 134 1: /* Install relocated selectors (FS/GS unused). */
> > 135 lgdt gdt_descr
> >
> > Adding the 1: jump 1b before line 132 would make it hang; adding the
> > line after 132 saw the computer rebooting continuously... I have no
> > idea what to make of this though.
>
> Hmm.... sounds like we don't work so well with Crusoe. :-)
> Firstly, I don't suggest that looping between lines 132 and 133 is
> very wise. The move to %cr0 and the following jump are supposed to
> happen right after one another. Put the loop immediately after line
> 134.
Only just got my hands on the notebook to test again. I vaguely
remembered that I had tried putting the loop between lines 134 and 135
previously (with the result being that it still kept rebooting), which
led me to move the loop higher up. Anyway, I've tried this again, and
confirmed what I remembered. If you're interested, I've put my xen
images at the same location as previously, so xen-132-syms is for the
loop inserted between lines 131 and 132, etc.
> Then, a few possibilities that might get you further:
>
> Change line 131 to:
> mov %cr0,%eax ; or $0x80050023,%eax
> ^
> Note this digit changed!
>
> Change line 133 to:
> ljmp $(__HYPERVISOR_CS),$1f
>
> Let me know how you get on with these changes.
I'm not clear what you mean by this. Do you want me to change the
source to this and compile it?
128 start_paging:
129 mov $idle_pg_table-__PAGE_OFFSET,%eax
130 mov %eax,%cr3
131 mov %cr0,%eax ; or $0x80050023,%eax
132 mov %eax,%cr0
133 ljmp $(__HYPERVISOR_CS),$1f
134 1: /* Install relocated selectors (FS/GS unused). */
135 lgdt gdt_descr
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
next prev parent reply other threads:[~2004-11-17 13:36 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-15 13:12 problems compiling xen on a crusoe Keir Fraser
2004-11-15 13:57 ` A Streetcar Named
2004-11-15 14:44 ` Keir Fraser
2004-11-17 13:36 ` A Streetcar Named [this message]
2004-11-17 13:43 ` Keir Fraser
2004-11-17 18:00 ` Adam Sulmicki
2004-11-17 21:49 ` Keir Fraser
2004-11-18 7:40 ` A Streetcar Named
2004-11-18 12:24 ` A Streetcar Named
2004-11-18 14:02 ` Jan Kundrát
2004-11-18 14:00 ` Keir Fraser
-- strict thread matches above, loose matches on Subject: below --
2004-11-14 8:19 A Streetcar Named
2004-11-14 9:45 ` Keir Fraser
2004-11-14 14:49 ` A Streetcar Named
2004-11-14 15:06 ` Keir Fraser
2004-11-15 8:42 ` A Streetcar Named
2004-11-15 9:04 ` Keir Fraser
2004-11-15 11:54 ` A Streetcar Named
2004-11-15 12:04 ` Keir Fraser
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=bf77ac7b0411170536101db598@mail.gmail.com \
--to=desire@gmail.com \
--cc=keir.fraser@cl.cam.ac.uk \
--cc=xen-devel@lists.sourceforge.net \
/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.