arm64: use correct register width when retrieving ASID
authorMatthew Leach <matthew.leach@arm.com>
Wed, 25 Sep 2013 15:33:13 +0000 (16:33 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 25 Sep 2013 15:42:23 +0000 (16:42 +0100)
commitfc18047c732f6becba92618a397555927687efd3
treeecb437b28ddd3b3e4c90aecc9364e6d2f92a0d5a
parent1f65c13efef69b6dc908e588f91a133641d8475c
arm64: use correct register width when retrieving ASID

The ASID is represented as an unsigned int in mm_context_t and we
currently use the mmid assembler macro to access this element of the
struct. This should be accessed with a register of 32-bit width. If
the incorrect register width is used the ASID will be returned in
bits[32:63] of the register when running under big-endian.

Fix a use of the mmid macro in tlb.S to use a 32-bit access.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Matthew Leach <matthew.leach@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/tlb.S