]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8665/1: nommu: access ID_PFR1 only if CPUID scheme
authorafzal mohammed <afzal.mohd.ma@gmail.com>
Thu, 23 Mar 2017 12:49:32 +0000 (13:49 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Wed, 29 Mar 2017 16:38:41 +0000 (17:38 +0100)
commitb6118799f2d4b4e8a2543e4347f51540f0550101
tree06ffca2e2a9bc7fa144ae9e6445564064d648f58
parentd058773ac2a65be1eb83962546bce9029522a250
ARM: 8665/1: nommu: access ID_PFR1 only if CPUID scheme

Greg upon trying to boot no-MMU Kernel on ARM926EJ reported boot
failure. He root caused it to ID_PFR1 access introduced by the
commit mentioned in the fixes tag below.

All CP15 processors need not have processor feature registers, only
for architectures defined by CPUID scheme would have it. Hence check
for it before accessing processor feature register, ID_PFR1.

Fixes: 4e854cf4d16e ("ARM: 8647/2: nommu: dynamic exception base address setting")
Reported-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
Tested-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/mm/nommu.c