From 184de7dd4b677619f64b8d7ed1a78ae8558f9acb Mon Sep 17 00:00:00 2001 From: Sergiu Moga Date: Mon, 24 Apr 2023 08:42:49 +0300 Subject: [PATCH] plat/kvm/arm: Add UEFI entry stub Implements the small ARM specific UEFI entry point which will call the early self relocator, and jump to the architecture generic EFI stub. Signed-off-by: Sergiu Moga Reviewed-by: Michalis Pappas Approved-by: Razvan Deaconescu Tested-by: Unikraft CI GitHub-Closes: #909 --- plat/kvm/arm/efi_entry64.S | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 plat/kvm/arm/efi_entry64.S diff --git a/plat/kvm/arm/efi_entry64.S b/plat/kvm/arm/efi_entry64.S new file mode 100644 index 000000000..b266ffdfe --- /dev/null +++ b/plat/kvm/arm/efi_entry64.S @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2023, Unikraft GmbH and The Unikraft Authors. + * Licensed under the BSD-3-Clause License (the "License"). + * You may not use this file except in compliance with the License. + */ +#include +#include + +.section .text +ENTRY(uk_efi_entry64) + stp x0, x1, [sp, #16] + + mov x0, xzr + mov x1, xzr + bl do_uk_reloc + ldp x0, x1, [sp, #16] + + bl uk_efi_main + +uk_efi_fail: + wfi + b uk_efi_fail +END(uk_efi_entry64) -- 2.39.5