2016-01-21 23:40:00 +01:00

17 lines
413 B
C

$NetBSD: patch-main.c,v 1.1 2015/03/21 02:18:39 tnn Exp $
--- main.c.orig 2013-08-10 02:01:58.000000000 +0000
+++ main.c
@@ -217,7 +217,11 @@ static void run_at(unsigned long addr, i
spin_lock(&barr->mutex);
/* Jump to the start address */
+#ifdef __clang__
+ asm volatile ("jmp *%0" : : "a" (ja));
+#else
goto *ja;
+#endif
}
/* Switch from the boot stack to the main stack. First the main stack