Skip to content

Commit 928fe1b

Browse files
authored
The assembly microkernel is not safe to use on ELFv1
1 parent ccc28c6 commit 928fe1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/power/idamax.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,14 +324,15 @@ BLASLONG CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x) {
324324

325325
if (inc_x == 1) {
326326

327+
#if defined(_CALL_ELF) && (_CALL_ELF == 2)
327328
BLASLONG n1 = n & -32;
328329
if (n1 > 0) {
329330

330331
max = diamax_kernel_32(n1, x, &maxf);
331332

332333
i = n1;
333334
}
334-
335+
#endif
335336
while (i < n) {
336337
if (ABS(x[i]) > maxf) {
337338
max = i;

0 commit comments

Comments
 (0)