Skip to content

Commit

Permalink
powerpc/44x: Fix 460EX/460GT machine check handling
Browse files Browse the repository at this point in the history
Those cores use the 440A type machine check (ie, they have
MCSRR0/MCSRR1). They thus need to call the appropriate fixup
function to hook the right variant of the exception.

Without this, all machine checks become fatal due to loss
of context when entering the exception handler.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
  • Loading branch information
Benjamin Herrenschmidt authored and Josh Boyer committed Nov 13, 2008
1 parent 5907630 commit 6612d9b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/powerpc/kernel/cpu_setup_44x.S
Original file line number Diff line number Diff line change
@@ -34,7 +34,12 @@ _GLOBAL(__setup_cpu_440grx)
blr
_GLOBAL(__setup_cpu_460ex)
_GLOBAL(__setup_cpu_460gt)
b __init_fpu_44x
mflr r4
bl __init_fpu_44x
bl __fixup_440A_mcheck
mtlr r4
blr

_GLOBAL(__setup_cpu_440gx)
_GLOBAL(__setup_cpu_440spe)
b __fixup_440A_mcheck

0 comments on commit 6612d9b

Please sign in to comment.