arm64: uaccess: Add PAN helper
authorJames Morse <james.morse@arm.com>
Mon, 8 Jan 2018 15:38:11 +0000 (15:38 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Sat, 13 Jan 2018 10:45:10 +0000 (10:45 +0000)
commite1281f56f114f3a945bf9ec30698bd3caa59d322
tree7f0ba9927a35325d2de07f223ba04f634f5f7b12
parented8b20d457d72e9e2a30533b436fdb4ea1c70b38
arm64: uaccess: Add PAN helper

Add __uaccess_{en,dis}able_hw_pan() helpers to set/clear the PSTATE.PAN
bit.

Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/uaccess.h
arch/arm64/kernel/suspend.c