]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Initialise MAARs
authorPaul Burton <paul.burton@imgtec.com>
Mon, 14 Jul 2014 09:32:15 +0000 (10:32 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 1 Aug 2014 22:06:46 +0000 (00:06 +0200)
commitab9988a3dafb8c94c2a19637fb00f7d1db799347
tree6c564bb08c92d79fcad07b8add4c555842ba3246
parent1f6c52ff7225789d20c1d69883f263d502b7eda7
MIPS: Initialise MAARs

Add initialisation for Memory Accessibility Attribute Registers. Generic
code cannot know the platform-specific requirements with regards to
speculative accesses, so it simply calls a platform_maar_init function
which platforms with MAARs are expected to implement by calling the
provided write_maar_pair function & returning the number of MAAR pairs
used. A weak default implementation will simply use no MAAR pairs. Any
present but unused MAAR pairs are then marked invalid, effectively
disabling them.

The end result of this patch is that MAARs are all marked invalid, until
platforms implement the platform_maar_init function.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7331/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/maar.h [new file with mode: 0644]
arch/mips/mm/init.c