1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2018 Linaro Ltd <ard.biesheuvel@linaro.org>
6 #include <linux/linkage.h>
8 ENTRY(__efi_rt_asm_wrapper)
9 stp x29, x30, [sp, #-32]!
13 * Register x18 is designated as the 'platform' register by the AAPCS,
14 * which means firmware running at the same exception level as the OS
15 * (such as UEFI) should never touch it.
17 stp x1, x18, [sp, #16]
20 * We are lucky enough that no EFI runtime services take more than
21 * 5 arguments, so all are passed in registers rather than via the
34 ldp x29, x30, [sp], #32
37 0: b efi_handle_corrupted_x18 // tail call
38 ENDPROC(__efi_rt_asm_wrapper)