arm64: introduce mm context flag to keep 32 bit task information
authorPratyush Anand <panand@redhat.com>
Wed, 2 Nov 2016 09:10:45 +0000 (14:40 +0530)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 7 Nov 2016 18:15:21 +0000 (18:15 +0000)
commit06beb72fbe23e348cc423dd9310c6fc02cd7c7da
tree50e79c6f7ebc74763a284ca35b3275547de6a12e
parent53d07e21854de064d9625853b8303357482b25b1
arm64: introduce mm context flag to keep 32 bit task information

We need to decide in some cases like uprobe instruction analysis that
whether the current mm context belongs to a 32 bit task or 64 bit.

This patch has introduced an unsigned flag variable in mm_context_t.
Currently, we set and clear TIF_32BIT depending on the condition that
whether an elf binary load sets personality for 32 bit or 64 bit
respectively.

Signed-off-by: Pratyush Anand <panand@redhat.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/elf.h
arch/arm64/include/asm/mmu.h