m68knommu: mask of vector bits in exception word properly
authorGreg Ungerer <gerg@uclinux.org>
Thu, 7 Oct 2010 07:16:56 +0000 (17:16 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Thu, 21 Oct 2010 00:17:31 +0000 (10:17 +1000)
commit730251f27df1ed0177609d1e49817f0c3ada0b1a
tree9ffee6982b122cb40d9e39722ee1ec8775a7bbba
parentdea2aff876c004cccf29549242c93b208787aa64
m68knommu: mask of vector bits in exception word properly

The vector field of the processors exception frame actually contains
both the vector exception number and fault status field bits.
The exception processing code was not correctly masking out the
fault status field bits before switching on the vector number.
The default case was catching the bad check, but we are reporting
the wrong kind of exception in some cases.

Reported-by: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68knommu/kernel/traps.c