summaryrefslogtreecommitdiff
path: root/sysutils/memtestplus/patches/patch-main.c
blob: bd22ba45274d0bbb5fd8b712cc41528dce3a2302 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-main.c,v 1.3 2018/01/29 14:23:26 maya Exp $

Clang fix.

--- 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