ia64/xen-unstable

changeset 14840:879625f363ee

[XEN][POWERPC] Fix debug=y build.
When debug=y, we use -O0 for single-stepping. This breaks the force-link-error
trick used in __xchg(), so we provide a real function to link with.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Hollis Blanchard <hollisb@us.ibm.com>
date Thu Apr 12 13:05:04 2007 -0500 (2007-04-12)
parents 2c18e90a9c00
children 5bda20f0723d
files xen/arch/powerpc/0opt.c
line diff
     1.1 --- a/xen/arch/powerpc/0opt.c	Thu Apr 12 10:42:43 2007 -0500
     1.2 +++ b/xen/arch/powerpc/0opt.c	Thu Apr 12 13:05:04 2007 -0500
     1.3 @@ -21,6 +21,12 @@
     1.4  #include <xen/config.h>
     1.5  #include <xen/lib.h>
     1.6  
     1.7 +extern void __xchg_called_with_bad_pointer(void);
     1.8 +void __xchg_called_with_bad_pointer(void)
     1.9 +{
    1.10 +    BUG();
    1.11 +}
    1.12 +
    1.13  extern void __cmpxchg_called_with_bad_pointer(void);
    1.14  void __cmpxchg_called_with_bad_pointer(void)
    1.15  {