]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Malta: Fix crash in SMP kernel on non-CMP systems.
authorRalf Baechle <ralf@linux-mips.org>
Sat, 28 May 2011 14:27:59 +0000 (15:27 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 20 Jul 2011 22:12:10 +0000 (23:12 +0100)
commit3c0dab6ac0675e451b96abf6849144a3c38d6aed
treeb38949922e762e4310b105eec24a9df5352804e4
parent256534cc0cbc3c4c937ddff8bfdc971d4a14db9b
MIPS: Malta: Fix crash in SMP kernel on non-CMP systems.

Since d49978bbefa31ab410c925a32c601a03178f6f24 (lmo) rsp.
8dfa8f674159bfa901fb3b7d48342b9a32df3177 (kernel.org) the Malta code does
no longer probe for presence of GCMP if CMP is not configured.  This means
that the variable gcmp_present well be left at its default value of -1
which normally is meant to indicate that GCMP has not yet been mmapped.
This non-zero value is now interpreted as GCMP being present resulting
in a write attempt to a GCMP register resulting in a crash.

Reported and a build fix on top of my fix by Rob Landley <rob@landley.net>.

Reported-by: Rob Landley <rob@landley.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/2413/
arch/mips/include/asm/smp-ops.h
arch/mips/mipssim/sim_setup.c
arch/mips/mti-malta/malta-init.c
arch/mips/pmc-sierra/msp71xx/msp_setup.c