Skip to content

Commit

Permalink
powerpc/47x: Make sure mcsr is cleared before enabling machine check …
Browse files Browse the repository at this point in the history
…interrupts

Clear the machine check syndrom register before enabling machine check
interrupts.  The initial state of the tlb can lead to parity errors being
flagged early after a cold boot.

Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
  • Loading branch information
Dave Kleikamp authored and Josh Boyer committed Aug 23, 2010
1 parent 31fc0bd commit 029b8f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/powerpc/kernel/head_44x.S
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ _ENTRY(_start);
stw r5, 0(r4) /* Save abatron_pteptrs at a fixed location */
stw r6, 0(r5)

/* Clear the Machine Check Syndrome Register */
li r0,0
mtspr SPRN_MCSR,r0

/* Let's move on */
lis r4,start_kernel@h
ori r4,r4,start_kernel@l
Expand Down

0 comments on commit 029b8f6

Please sign in to comment.