mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
17 lines
413 B
C
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
|