xen/arm64: head: Don't clobber x30/lr in the macro PRINT
authorJulien Grall <julien.grall@arm.com>
Mon, 22 Jul 2019 21:39:26 +0000 (22:39 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Mon, 29 Jul 2019 23:13:57 +0000 (16:13 -0700)
commit1396dabdfd6c050d6b2ed3593dbabb81a4ac41d6
tree1bf910d10fdd5b844ec560ae23d23fbcffa7f31a
parent13c03002c5dfaf8952fa55cca8f99e96948bb7b8
xen/arm64: head: Don't clobber x30/lr in the macro PRINT

The current implementation of the macro PRINT will clobber x30/lr. This
means the user should save lr if it cares about it.

Follow-up patches will introduce more use of PRINT in place where lr
should be preserved. Rather than requiring all the users to preserve
lr, the macro PRINT is modified to save and restore it.

While the comment state x3 will be clobbered, this is not the case. So
PRINT will use x3 to preserve lr.

Lastly, take the opportunity to move the comment on top of PRINT and use
PRINT in init_uart. Both changes will be helpful in a follow-up patch.

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