diff options
author | Rebecca Cran <quic_rcran@quicinc.com> | 2022-05-04 02:48:11 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-05-13 14:58:54 +0000 |
commit | 35d9b7ea2d46f784365c14eb293fcd802a2bafff (patch) | |
tree | ee26d3033b9ae9e2bb5ca673a0f68647ce8a0d72 /ArmPkg/Library/ArmSvcLib | |
parent | ef01d63ef3c9d2e7f39755b9c2b6bf40f6076ef3 (diff) | |
download | edk2-35d9b7ea2d46f784365c14eb293fcd802a2bafff.tar.gz edk2-35d9b7ea2d46f784365c14eb293fcd802a2bafff.tar.bz2 edk2-35d9b7ea2d46f784365c14eb293fcd802a2bafff.zip |
ArmPkg: Remove RVCT support
RVCT is obsolete and no longer used.
Remove support for it.
Signed-off-by: Rebecca Cran <quic_rcran@quicinc.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'ArmPkg/Library/ArmSvcLib')
-rw-r--r-- | ArmPkg/Library/ArmSvcLib/Arm/ArmSvc.asm | 36 | ||||
-rw-r--r-- | ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf | 1 |
2 files changed, 0 insertions, 37 deletions
diff --git a/ArmPkg/Library/ArmSvcLib/Arm/ArmSvc.asm b/ArmPkg/Library/ArmSvcLib/Arm/ArmSvc.asm deleted file mode 100644 index d1751488b2..0000000000 --- a/ArmPkg/Library/ArmSvcLib/Arm/ArmSvc.asm +++ /dev/null @@ -1,36 +0,0 @@ -//
-// Copyright (c) 2016 - 2020, ARM Limited. All rights reserved.
-//
-// SPDX-License-Identifier: BSD-2-Clause-Patent
-//
-//
-
-
- INCLUDE AsmMacroExport.inc
-
- RVCT_ASM_EXPORT ArmCallSvc
- // r0 will be popped just after the SVC call
- push {r0, r4-r8}
-
- // Load the SVC arguments values into the appropriate registers
- ldm r0, {r0-r7}
-
- svc #0
- // Prevent speculative execution beyond svc instruction
- dsb nsh
- isb
-
- // Load the ARM_SVC_ARGS structure address from the stack into r8
- ldr r8, [sp]
-
- // Load the SVC returned values into the appropriate registers
- // A SVC call can return up to 4 values - we do not need to store back r4-r7.
- stm r8, {r0-r3}
-
- mov r0, r8
-
- // Restore the registers r4-r8
- pop {r1, r4-r8}
- bx lr
-
- END
diff --git a/ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf b/ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf index 744a29fbf7..ecfbc5d64a 100644 --- a/ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf +++ b/ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf @@ -14,7 +14,6 @@ LIBRARY_CLASS = ArmSvcLib
[Sources.ARM]
- Arm/ArmSvc.asm | RVCT
Arm/ArmSvc.S | GCC
[Sources.AARCH64]
|