arm64: introduce mm context flag to keep 32 bit task information 47/149947/1
authorPratyush Anand <panand@redhat.com>
Wed, 2 Nov 2016 09:10:45 +0000 (14:40 +0530)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Wed, 13 Sep 2017 16:00:59 +0000 (18:00 +0200)
commit2e760e444d291bed2bbf5ec3f6a2c480e03ee8be
tree1c62ff5d51051288f72e63f3c8820eff77bb7734
parent7b5e9236c4e46ac278fba7193e806c6f9347b37d
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>
[ Mainline commit 06beb72 ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Change-Id: If922121df743b54a94347f6adf8a0333b84d5a94
arch/arm64/include/asm/elf.h
arch/arm64/include/asm/mmu.h