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

[Xen-ia64-devel] [PATCH] fixed asm-offset.h asm-xsi-offset.h generation

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH] fixed asm-offset.h asm-xsi-offset.h generation
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Wed, 14 Dec 2005 17:00:01 +0900
Delivery-date: Wed, 14 Dec 2005 08:01:35 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
Hi

Vanilla binutils refuse to assemble -imm0 - -imm1 as a syntax error,
so that linux-2.6-sparse/arch/ia64/xen/xenivt.S can't be compiled.
This patch adds parens to fix it.
Although it seems that some distributions modify their binutils
to accept such syntax(at least redhat, debian),
I think xen should be able to be compiled with vanilla binutils.


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

--
diff -r 1a6e70e434ad -r 7e68cdd9a405 xen/Makefile
--- a/xen/Makefile      Thu Dec  1 18:19:35 2005 +0900
+++ b/xen/Makefile      Thu Dec  1 18:19:47 2005 +0900
@@ -116,7 +116,7 @@
          echo "#ifndef __ASM_OFFSETS_H__"; \
          echo "#define __ASM_OFFSETS_H__"; \
          echo ""; \
-         sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 
/* \3 */:; s:->::; p;}"; \
+         sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 (\2) 
/* \3 */:; s:->::; p;}"; \
          echo ""; \
          echo "#endif") <$< >$@
 
diff -r 1a6e70e434ad -r 7e68cdd9a405 xen/arch/ia64/Makefile
--- a/xen/arch/ia64/Makefile    Thu Dec  1 18:19:35 2005 +0900
+++ b/xen/arch/ia64/Makefile    Thu Dec  1 18:19:47 2005 +0900
@@ -58,7 +58,7 @@
          echo "#ifndef __ASM_XSI_OFFSETS_H__"; \
          echo "#define __ASM_XSI_OFFSETS_H__"; \
          echo ""; \
-         sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 
/* \3 */:; s:->::; p;}"; \
+         sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 (\2) 
/* \3 */:; s:->::; p;}"; \
          echo ""; \
          echo "#endif") <$< >$@
 


-- 
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>
  • [Xen-ia64-devel] [PATCH] fixed asm-offset.h asm-xsi-offset.h generation, Isaku Yamahata <=