]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: l2c: provide generic hook to intercept writes to secure registers
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 16 Mar 2014 17:38:08 +0000 (17:38 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 22 May 2014 15:40:17 +0000 (16:40 +0100)
commit8c6568963550c7990b0f69daed16848519955bc7
treec0470e2dad8fe22a407f3f59db5f0f4042a646e4
parente563acafe8792c4894c64a0acd2117f432ee4150
ARM: l2c: provide generic hook to intercept writes to secure registers

When Linux is running in the non-secure world, any write to a secure
L2C register will generate an abort.  Platforms normally have to call
firmware to work around this.  Provide a hook for them to intercept
any L2C secure register write.

l2c_write_sec() avoids writes to secure registers which are already set
to the appropriate value, thus avoiding the overhead of needlessly
calling into the secure monitor.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/outercache.h
arch/arm/mm/cache-l2x0.c