From: Paolo Molaro Date: Fri, 16 Jan 2009 14:23:17 +0000 (-0000) Subject: Fri Jan 16 15:21:21 CET 2009 Paolo Molaro X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=a3b64295086331a1b7e8f7032fb534e66970b260;p=mono.git Fri Jan 16 15:21:21 CET 2009 Paolo Molaro * exceptions-ppc.c: tweaks from malc (OV-Soft) to fix the size of the trampoline code. Include ucontext.h only if available. svn path=/trunk/mono/; revision=123609 --- diff --git a/mono/mini/ChangeLog b/mono/mini/ChangeLog index 285b4de7b11..7d4ebb12cfe 100644 --- a/mono/mini/ChangeLog +++ b/mono/mini/ChangeLog @@ -1,3 +1,9 @@ + +Fri Jan 16 15:21:21 CET 2009 Paolo Molaro + + * 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 * mini.c: mono_domain_lookup_shared_generic() takes an open method diff --git a/mono/mini/exceptions-ppc.c b/mono/mini/exceptions-ppc.c index 66819cd2549..6cb794d3b0b 100644 --- a/mono/mini/exceptions-ppc.c +++ b/mono/mini/exceptions-ppc.c @@ -15,7 +15,9 @@ #include #include #include +#if HAVE_UCONTEXT_H #include +#endif #include #include @@ -397,7 +399,7 @@ mono_arch_get_throw_exception_generic (guint8 *start, int size, int by_name, gbo 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; } @@ -474,7 +476,7 @@ mono_arch_get_throw_exception_by_name (void) 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;