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-ia64-devel

Re: [Xen-ia64-devel] ask for help

To: "Duan, Ronghui" <ronghui.duan@xxxxxxxxx>
Subject: Re: [Xen-ia64-devel] ask for help
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Wed, 05 Sep 2007 21:35:13 -0600
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 05 Sep 2007 20:36:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <82C666AA63DC75449C51EAD62E8B2BEC184037@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: HP OSLO R&D
References: <82C666AA63DC75449C51EAD62E8B2BEC184037@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2007-09-06 at 10:53 +0800, Duan, Ronghui wrote:
> Hi:
> 
>    Some guy reported before that big-endian programs can not run on
> xenU. I am looking for this bug .Could any one can tell me how to
> compile a big-endian program on IA64. It seems that -mbig-endian
> option of gcc can not make sense. Thank you!

   This seems to do it:

#define IA64_PSR_BE_BIT         1
#define IA64_PSR_BE             ((1) << IA64_PSR_BE_BIT)

#define ia64_sum(mask)  asm volatile ("sum %0":: "i"((mask)) : "memory")

int main(void)
{
        ia64_sum(IA64_PSR_BE);
        while (1);
}

Compile with 'gcc -o test test.c'.  I confirmed that this runs on a bare
metal kernel, but crashes under Xen.  Thanks,

        Alex

-- 
Alex Williamson                             HP Open Source & Linux Org.


_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>