hyp-entry.S (98817a84ff1c755c347ac633ff017a623a631fad) hyp-entry.S (7b2399ea5640b2e5f576af08b91091a26f240ea4)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2015-2018 - ARM Ltd
4 * Author: Marc Zyngier <marc.zyngier@arm.com>
5 */
6
7#include <linux/arm-smccc.h>
8#include <linux/linkage.h>

--- 304 unchanged lines hidden (view full) ---

313 .align 11
314SYM_CODE_START(__bp_harden_hyp_vecs)
315 .rept BP_HARDEN_EL2_SLOTS
316 generate_vectors
317 .endr
3181: .org __bp_harden_hyp_vecs + __BP_HARDEN_HYP_VECS_SZ
319 .org 1b
320SYM_CODE_END(__bp_harden_hyp_vecs)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (C) 2015-2018 - ARM Ltd
4 * Author: Marc Zyngier <marc.zyngier@arm.com>
5 */
6
7#include <linux/arm-smccc.h>
8#include <linux/linkage.h>

--- 304 unchanged lines hidden (view full) ---

313 .align 11
314SYM_CODE_START(__bp_harden_hyp_vecs)
315 .rept BP_HARDEN_EL2_SLOTS
316 generate_vectors
317 .endr
3181: .org __bp_harden_hyp_vecs + __BP_HARDEN_HYP_VECS_SZ
319 .org 1b
320SYM_CODE_END(__bp_harden_hyp_vecs)
321
322 .popsection
323
324SYM_CODE_START(__smccc_workaround_1_smc)
325 esb
326 sub sp, sp, #(8 * 4)
327 stp x2, x3, [sp, #(8 * 0)]
328 stp x0, x1, [sp, #(8 * 2)]
329 mov w0, #ARM_SMCCC_ARCH_WORKAROUND_1
330 smc #0
331 ldp x2, x3, [sp, #(8 * 0)]
332 ldp x0, x1, [sp, #(8 * 2)]
333 add sp, sp, #(8 * 4)
3341: .org __smccc_workaround_1_smc + __SMCCC_WORKAROUND_1_SMC_SZ
335 .org 1b
336SYM_CODE_END(__smccc_workaround_1_smc)
337#endif
321#endif