acrn-hypervisor/hypervisor/arch/x86/lib/retpoline-thunk.S
Geoffroy Van Cutsem 8b16be9185 Remove "All rights reserved" string headers
Many of the license and Intel copyright headers include the "All rights
reserved" string. It is not relevant in the context of the BSD-3-Clause
license that the code is released under. This patch removes those strings
throughout the code (hypervisor, devicemodel and misc).

Tracked-On: #7254
Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
2022-04-06 13:21:02 +08:00

39 lines
680 B
ArmAsm

/*
* Copyright (C) 2018 Intel Corporation.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
.macro retpoline_thunk reg:req
.align 8
.global __x86_indirect_thunk_\reg
__x86_indirect_thunk_\reg:
call 22f
11:
pause
lfence
jmp 11b
22:
mov %\reg, (%rsp)
ret
.endm
.section .retpoline_thunk, "ax"
retpoline_thunk rax
retpoline_thunk rbx
retpoline_thunk rcx
retpoline_thunk rdx
retpoline_thunk rdi
retpoline_thunk rsi
retpoline_thunk rbp
retpoline_thunk r8
retpoline_thunk r9
retpoline_thunk r10
retpoline_thunk r11
retpoline_thunk r12
retpoline_thunk r13
retpoline_thunk r14
retpoline_thunk r15