Skip to content

Commit 6859700

Browse files
authored
The assembly microkernel is not safe to use on ELFv1
1 parent d2a6285 commit 6859700

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/power/izamax.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,15 @@ BLASLONG CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x)
316316

317317
if (inc_x == 1) {
318318

319+
#if defined(_CALL_ELF) && (_CALL_ELF == 2)
319320
BLASLONG n1 = n & -16;
320321
if (n1 > 0) {
321322

322323
max = ziamax_kernel_16(n1, x, &maxf);
323324
i = n1;
324325
ix = n1 << 1;
325326
}
327+
#endif
326328

327329
while(i < n)
328330
{

0 commit comments

Comments
 (0)