]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: kernel: do not need to reset UAO on exception entry
authorVladimir Murzin <vladimir.murzin@arm.com>
Thu, 1 Sep 2016 13:35:59 +0000 (14:35 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 1 Sep 2016 19:22:47 +0000 (20:22 +0100)
commitf740e66d3bc5d6cda3bae68a6f616516c53b73c8
tree494a916076f45e93bac2aa361e17fc0e4dd5770d
parentae7241c97d2083f2eaf78efbb840180bf15370e4
arm64: kernel: do not need to reset UAO on exception entry

Commit 923930034bb3 ("arm64: kernel: Save and restore UAO and
addr_limit on exception entry") states that exception handler inherits
the original PSTATE.UAO value, so UAO needes to be reset
explicitly. However, ARM 8.2 Extension documentation says:

PSTATE.UAO is copied to SPSR_ELx.UAO and is then set to 0 on an
exception taken from AArch64 to AArch64

so hardware already does the right thing.

Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Acked-by: James Morse <james.morse@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/entry.S