[PATCH] Trapping for Alpha EV4 machines

From: Carsten Jacobi (carsten@jakes.kawo1.rwth-aachen.de)
Date: Sun Feb 20 2000 - 17:19:40 EST


I have found a bug. I just don't know whether to blame the kernel or
my processor, but now it works.
The problem is, that EV4 machines seam to behave differently than
EV5/6 during an illegal opcode or FP forced software handling trap. At
least the code in arch/alpha/kernel/traps.c assumes that the PC is
incremented when the exception handler is executed. This is not the case
on my EV4-machine, and programs that used trapping math instructions (I
got him on "cvttq/svm") just stuck:
1. The exception handler tried to handle the instruction that preceeded
the instruction which caused the exception.
2. After the handling the PC was still pointing to the same insn so that
the exception was caused over and over again.
Thus the process using such an insn ate up the whole CPU power and didn't
process!
Unfortunately this instruction was located in the libgtk so that every
program using gtk didn't work on my machine (Thanks tux now they do run
8-) ).
Ok, anybody with an EV4-Alpha (for example Jensen) who shares the same
experience with me? Or do I have a very exclusive/unique 21064 in my
chassis ... ;-)

Carsten

PS.: I definitely know that the second call in the patchfile to
"alpha_fp_emul" is corrected by the patch. I hope my change to the first
call in the patch file is correct too, but I am not sure ...

--------------------------------------

Carsten Jacobi
Kastanienweg 6, App.1317
52074 Aachen

Tel.: +49 241 878117
Fax : +49 241 878189
ISDN: +49 241 878190
E-Mail: carsten@jakes.kawo1.rwth-aachen.de

--------------------------------------



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:26 EST