[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [XEN][POWERPC] Fix debug=y build.
# HG changeset patch # User Hollis Blanchard <hollisb@xxxxxxxxxx> # Date 1176401104 18000 # Node ID 879625f363eebb9a5218282fe20af83ba0ac9e17 # Parent 2c18e90a9c00337a4f1734005cb9ee89dbbf1733 [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@xxxxxxxxxx> --- xen/arch/powerpc/0opt.c | 6 ++++++ 1 files changed, 6 insertions(+) diff -r 2c18e90a9c00 -r 879625f363ee xen/arch/powerpc/0opt.c --- a/xen/arch/powerpc/0opt.c Thu Apr 12 10:42:43 2007 -0500 +++ b/xen/arch/powerpc/0opt.c Thu Apr 12 13:05:04 2007 -0500 @@ -21,6 +21,12 @@ #include <xen/config.h> #include <xen/lib.h> +extern void __xchg_called_with_bad_pointer(void); +void __xchg_called_with_bad_pointer(void) +{ + BUG(); +} + extern void __cmpxchg_called_with_bad_pointer(void); void __cmpxchg_called_with_bad_pointer(void) { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |