xen/arm32: head: Rework and document launch()
authorJulien Grall <julien.grall@arm.com>
Mon, 22 Jul 2019 15:08:30 +0000 (16:08 +0100)
committerJulien Grall <julien.grall@arm.com>
Tue, 17 Sep 2019 16:45:21 +0000 (17:45 +0100)
commit54c4ae18d158185891a646166388dc3ce7e8dc69
tree3ba0f3ddf1f00b517d1cca7af6fe6ba5746d3e99
parenta5853e7d31f7a59e7995e86114a9aeb101456062
xen/arm32: head: Rework and document launch()

Boot CPU and secondary CPUs will use different entry point to C code. At
the moment, the decision on which entry to use is taken within launch().

In order to avoid using conditional instruction and make the call
clearer, launch() is reworked to take in parameters the entry point and its
arguments.

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