[OpenBIOS] [PATCH] ppc: Move noreturn attribute

Andreas Färber andreas.faerber at web.de
Sun Oct 17 15:33:02 CEST 2010


Am 17.10.2010 um 15:20 schrieb Andreas Färber:

> I'm attaching my current diff. It made it compile but it hangs both  
> ppc and ppc64, no time to investigate further right now.

Noticed that I was still using 0 in place of t+3 in internal.c (the  
question I posted elsewhere); undoing that for ppc doesn't help.

Andreas


diff --git a/kernel/internal.c b/kernel/internal.c
index bc928bf..5a293e5 100644
--- a/kernel/internal.c
+++ b/kernel/internal.c
@@ -50,7 +50,11 @@ char xtname[MAXNFALEN];
  /* instead of pointing to an explicit 0 variable we
   * point behind the pointer.
   */
+#ifdef __powerpc64__
  static ucell t[] = { DOCOL, 0, /*(ucell)(t+3)*/0, 0 };
+#else
+static ucell t[] = { DOCOL, 0, (ucell)(t+3), 0 };
+#endif
  static ucell *trampoline = t;
  #endif





More information about the OpenBIOS mailing list