+
+Fri Jan 16 15:21:21 CET 2009 Paolo Molaro <lupus@ximian.com>
+
+ * exceptions-ppc.c: tweaks from malc (OV-Soft) to fix the size of the
+ trampoline code. Include ucontext.h only if available.
+
2009-01-15 Mark Probst <mark.probst@gmail.com>
* mini.c: mono_domain_lookup_shared_generic() takes an open method
#include <signal.h>
#include <string.h>
#include <stddef.h>
+#if HAVE_UCONTEXT_H
#include <ucontext.h>
+#endif
#include <mono/arch/ppc/ppc-codegen.h>
#include <mono/metadata/appdomain.h>
ppc_bcctrl (code, PPC_BR_ALWAYS, 0);
/* we should never reach this breakpoint */
ppc_break (code);
- g_assert ((code - start) < size);
+ g_assert ((code - start) <= size);
mono_arch_flush_icache (start, code - start);
return start;
}
static int inited = 0;
guint8 *code;
- int size = MONO_PPC_32_64_CASE (168, 292) + PPC_FTNPTR_SIZE;
+ int size = MONO_PPC_32_64_CASE (168, 304) + PPC_FTNPTR_SIZE;
if (inited)
return start;