summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm/mmu.h
diff options
context:
space:
mode:
authorPratyush Anand <panand@redhat.com>2016-11-02 10:10:45 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2016-11-07 19:15:21 +0100
commit06beb72fbe23e348cc423dd9310c6fc02cd7c7da (patch)
tree50e79c6f7ebc74763a284ca35b3275547de6a12e /arch/arm64/include/asm/mmu.h
parentarm64: Handle TRAP_BRKPT for user mode as well (diff)
downloadlinux-06beb72fbe23e348cc423dd9310c6fc02cd7c7da.tar.xz
linux-06beb72fbe23e348cc423dd9310c6fc02cd7c7da.zip
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;
/*