ia64/xen-unstable

changeset 8481:2884f14895d2

Allow asm-offsets to work with vanilla binutils
Necessary because SHARED_ARCHINFO_ADDR is negative
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author djm@kirby.fc.hp.com
date Fri Jan 13 10:38:44 2006 -0600 (2006-01-13)
parents 2869bdd16bd4
children f5ab28885c75
files xen/arch/ia64/asm-offsets.c xen/arch/ia64/asm-xsi-offsets.c
line diff
     1.1 --- a/xen/arch/ia64/asm-offsets.c	Fri Jan 13 10:36:47 2006 -0600
     1.2 +++ b/xen/arch/ia64/asm-offsets.c	Fri Jan 13 10:38:44 2006 -0600
     1.3 @@ -15,7 +15,7 @@
     1.4  #define task_struct vcpu
     1.5  
     1.6  #define DEFINE(sym, val) \
     1.7 -        asm volatile("\n->" #sym " %0 " #val : : "i" (val))
     1.8 +        asm volatile("\n->" #sym " (%0) " #val : : "i" (val))
     1.9  
    1.10  #define BLANK() asm volatile("\n->" : : )
    1.11  
     2.1 --- a/xen/arch/ia64/asm-xsi-offsets.c	Fri Jan 13 10:36:47 2006 -0600
     2.2 +++ b/xen/arch/ia64/asm-xsi-offsets.c	Fri Jan 13 10:38:44 2006 -0600
     2.3 @@ -38,7 +38,7 @@
     2.4  #define task_struct vcpu
     2.5  
     2.6  #define DEFINE(sym, val) \
     2.7 -        asm volatile("\n->" #sym " %0 " #val : : "i" (val))
     2.8 +        asm volatile("\n->" #sym " (%0) " #val : : "i" (val))
     2.9  
    2.10  #define BLANK() asm volatile("\n->" : : )
    2.11