]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Don't write ones to reserved entryhi bits.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 27 May 2009 16:29:37 +0000 (17:29 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 2 Nov 2009 11:00:01 +0000 (12:00 +0100)
commit6e2f4279768b01f199aa5619470463c6135db081
tree695c69480dfa8e083cf567aad02bef2a5a35cfca
parentad8ca7c0f1ab1a4bf0d930e32c7130542e4c5966
MIPS: Don't write ones to reserved entryhi bits.

We've silently been relying on the hardware chopping off excess, reserved
ASID bits for no better reason that it saving an instruction.  Because we
already have:

#define cpu_asid(cpu, mm)       (cpu_context((cpu), (mm)) & ASID_MASK)

in <asm/mmu_context.h>.

We can use a cleanup to avoid writing non-zero bits into the reserved
entryhi bits.  This avoid triggering some debugging assertion in the
Cavium simulator.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mmu_context.h