xen/arm64: head: Rework and document launch()
authorJulien Grall <julien.grall@arm.com>
Mon, 15 Apr 2019 11:24:30 +0000 (12:24 +0100)
committerJulien Grall <julien.grall@arm.com>
Sat, 7 Sep 2019 11:09:40 +0000 (12:09 +0100)
commit7e14a47e7c731b5dd3feb9b81319764f474ad59a
treef368ca51c9a35e869778fa5586794811655da0df
parent4e0067b2c5c24cc3dd35e10a92f20b32ea4e20db
xen/arm64: 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 a branch for the decision and make the code 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/arm64/head.S