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] [PATCH] fixed asm-offset.h asm-xsi-offset.hgenerati

To: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>
Subject: Re: [Xen-ia64-devel] [PATCH] fixed asm-offset.h asm-xsi-offset.hgeneration
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Fri, 16 Dec 2005 11:59:20 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 16 Dec 2005 03:01:16 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <516F50407E01324991DD6D07B0531AD5876753@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <516F50407E01324991DD6D07B0531AD5876753@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i

Hi.

On Thu, Dec 15, 2005 at 11:57:33AM -0800, Magenheimer, Dan (HP Labs Fort 
Collins) wrote:
> The sed line that is used is exactly the same as in linux
> (see sed-y in linux-2.6.14/Kbuild) so I don't think that
> the Xen team will change the Makefile.  Does vanilla
> binutils work to build Linux?

Yes. It is because Linux doesn't define negative value
in asm-offsets.h.

I agree that the Xen team won't accept.
This probelem is ia64-specific so that it sould be solved
ia64-specifically.
(SHARED_ARCHINFO_ADDR is defined as a large negative value.)
How about this patch?


Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

--

diff -r 7ef565a7cc86 xen/arch/ia64/asm-offsets.c
--- a/xen/arch/ia64/asm-offsets.c       Thu Dec 15 17:17:06 2005 -0600
+++ b/xen/arch/ia64/asm-offsets.c       Fri Dec 16 11:43:20 2005 +0900
@@ -15,7 +15,7 @@
 #define task_struct vcpu
 
 #define DEFINE(sym, val) \
-        asm volatile("\n->" #sym " %0 " #val : : "i" (val))
+        asm volatile("\n->" #sym " (%0) " #val : : "i" (val))
 
 #define BLANK() asm volatile("\n->" : : )
 
diff -r 7ef565a7cc86 xen/arch/ia64/asm-xsi-offsets.c
--- a/xen/arch/ia64/asm-xsi-offsets.c   Thu Dec 15 17:17:06 2005 -0600
+++ b/xen/arch/ia64/asm-xsi-offsets.c   Fri Dec 16 11:43:20 2005 +0900
@@ -38,7 +38,7 @@
 #define task_struct vcpu
 
 #define DEFINE(sym, val) \
-        asm volatile("\n->" #sym " %0 " #val : : "i" (val))
+        asm volatile("\n->" #sym " (%0) " #val : : "i" (val))
 
 #define BLANK() asm volatile("\n->" : : )
 

-- 
yamahata

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

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