summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/mmu.h
diff options
context:
space:
mode:
authorPratyush Anand <panand@redhat.com>2016-11-02 12:10:45 +0300
committerCatalin Marinas <catalin.marinas@arm.com>2016-11-07 21:15:21 +0300
commit06beb72fbe23e348cc423dd9310c6fc02cd7c7da (patch)
tree50e79c6f7ebc74763a284ca35b3275547de6a12e /arch/arm64/include/asm/mmu.h
parent53d07e21854de064d9625853b8303357482b25b1 (diff)
downloadlinux-06beb72fbe23e348cc423dd9310c6fc02cd7c7da.tar.xz
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>
Diffstat (limited to 'arch/arm64/include/asm/mmu.h')
-rw-r--r--arch/arm64/include/asm/mmu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/mmu.h b/arch/arm64/include/asm/mmu.h
index a81454ad5455..47619411f0ff 100644
--- a/arch/arm64/include/asm/mmu.h
+++ b/arch/arm64/include/asm/mmu.h
@@ -19,6 +19,7 @@
typedef struct {
atomic64_t id;
void *vdso;
+ unsigned long flags;
} mm_context_t;
/*