xen/arm32: head: Rework and document check_cpu_mode()
authorJulien Grall <julien.grall@arm.com>
Tue, 16 Apr 2019 13:53:19 +0000 (14:53 +0100)
committerJulien Grall <julien.grall@arm.com>
Sat, 7 Sep 2019 11:10:38 +0000 (12:10 +0100)
commit1145ea989613f448e401caf004d2de26d834a267
treeb46e277ffc1191994f9878d899eb5a35ea4db3b2
parent870c95a8f128c695a2f8774a680f78685da9c73c
xen/arm32: head: Rework and document check_cpu_mode()

A branch in the success case can be avoided by inverting the branch
condition. At the same time, remove a pointless comment as Xen can only
run at Hypervisor Mode.

Lastly, document the behavior and the main registers usage within the
function.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/arm32/head.S