[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] xen/efi: Use PrintErrMsg() rather than printk() in efi_exit_boot()
From: Julien Grall <jgrall@xxxxxxxxxx> The function efi_exit_boot() will be called within the UEFI stub. This means printk() is not available will actually result to a crash when called (at least on Arm). Replace the call to printk() with PrintErrMsg(). Fixes: 49450415d6 ("efi: optionally call SetVirtualAddressMap()") Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx> --- xen/common/efi/boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/common/efi/boot.c b/xen/common/efi/boot.c index 2bc38ae40fff..4ef75e472d29 100644 --- a/xen/common/efi/boot.c +++ b/xen/common/efi/boot.c @@ -1181,8 +1181,8 @@ static void __init efi_exit_boot(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *Syste mdesc_ver, efi_memmap); if ( status != EFI_SUCCESS ) { - printk(XENLOG_ERR "EFI: SetVirtualAddressMap() failed (%#lx), disabling runtime services\n", - status); + PrintErrMesg(L"EFI: SetVirtualAddressMap() failed, disabling runtime services", + status); __clear_bit(EFI_RS, &efi_flags); } #endif -- 2.32.0
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |