From 928fe1b28e91aa55748bfc7d2abf2ed2786d3ef5 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 3 Nov 2019 22:37:27 +0100 Subject: [PATCH] The assembly microkernel is not safe to use on ELFv1 --- kernel/power/idamax.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/power/idamax.c b/kernel/power/idamax.c index 5bdc0a13c..337fa54f8 100644 --- a/kernel/power/idamax.c +++ b/kernel/power/idamax.c @@ -324,6 +324,7 @@ BLASLONG CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x) { if (inc_x == 1) { +#if defined(_CALL_ELF) && (_CALL_ELF == 2) BLASLONG n1 = n & -32; if (n1 > 0) { @@ -331,7 +332,7 @@ BLASLONG CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x) { i = n1; } - +#endif while (i < n) { if (ABS(x[i]) > maxf) { max = i;