summaryrefslogtreecommitdiff
path: root/arch/arm/mach-prima2/common.h
diff options
context:
space:
mode:
authorVladimir Murzin <vladimir.murzin@arm.com>2019-02-20 17:00:53 +0300
committerRussell King <rmk+kernel@armlinux.org.uk>2019-02-26 14:35:56 +0300
commitd410a8a49e3e00e07d43037e90f776d522b25a6a (patch)
tree5b5d71c63902a8ce3dd318371f7ded6364b947c3 /arch/arm/mach-prima2/common.h
parentca70ea43f80c98582f5ffbbd1e6f4da2742da0c4 (diff)
downloadlinux-d410a8a49e3e00e07d43037e90f776d522b25a6a.tar.xz
ARM: 8849/1: NOMMU: Fix encodings for PMSAv8's PRBAR4/PRLAR4
To access PRBARn, where n is referenced as a binary number: MRC p15, 0, <Rt>, c6, c8+n[3:1], 4*n[0] ; Read PRBARn into Rt MCR p15, 0, <Rt>, c6, c8+n[3:1], 4*n[0] ; Write Rt into PRBARn To access PRLARn, where n is referenced as a binary number: MRC p15, 0, <Rt>, c6, c8+n[3:1], 4*n[0]+1 ; Read PRLARn into Rt MCR p15, 0, <Rt>, c6, c8+n[3:1], 4*n[0]+1 ; Write Rt into PRLARn For PR{B,L}AR4, n is 4, n[0] is 0, n[3:1] is 2, while current encoding done with n[0] set to 1 which is wrong. Use proper encoding instead. Fixes: 046835b4aa22b9ab6aa0bb274e3b71047c4b887d ("ARM: 8757/1: NOMMU: Support PMSAv8 MPU") Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/mach-prima2/common.h')
0 files changed, 0 insertions, 0 deletions