WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] problems compiling xen on a crusoe

To: A Streetcar Named <desire@xxxxxxxxx>
Subject: Re: [Xen-devel] problems compiling xen on a crusoe
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Mon, 15 Nov 2004 14:44:47 +0000
Cc: Keir Fraser <keir.fraser@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 15 Nov 2004 16:34:38 +0000
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Mon, 15 Nov 2004 21:57:34 +0800." <bf77ac7b04111505572b804dca@xxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> Yep, I'm definitely trying to boot xen.gz (unless the grub menu
> extract I showed earlier was wrong)...
> 
> Have tried adding printk's and for (;;) {} in kernel.c - that didn't help.
> 
> 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. 

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.

 Cheers,
 Keir


-------------------------------------------------------
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel