From 25402f5d0660acde3ee382a36b065945251990dc Mon Sep 17 00:00:00 2001 From: Harry Liebel Date: Thu, 18 Jul 2013 18:07:46 +0000 Subject: ArmPkg: Added Aarch64 support Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Harry Liebel Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14486 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPkg/Library/SemihostLib/AArch64/GccSemihost.S | 23 +++++++++++++++++++++++ ArmPkg/Library/SemihostLib/SemihostLib.inf | 8 ++++++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 ArmPkg/Library/SemihostLib/AArch64/GccSemihost.S (limited to 'ArmPkg/Library/SemihostLib') diff --git a/ArmPkg/Library/SemihostLib/AArch64/GccSemihost.S b/ArmPkg/Library/SemihostLib/AArch64/GccSemihost.S new file mode 100644 index 0000000000..42211cf4ff --- /dev/null +++ b/ArmPkg/Library/SemihostLib/AArch64/GccSemihost.S @@ -0,0 +1,23 @@ +#------------------------------------------------------------------------------ +# +# Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.
+# Copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.
+# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +#------------------------------------------------------------------------------ + +.text +.align 2 + +.globl ASM_PFX(GccSemihostCall) + +ASM_PFX(GccSemihostCall): + hlt #0xf000 + ret diff --git a/ArmPkg/Library/SemihostLib/SemihostLib.inf b/ArmPkg/Library/SemihostLib/SemihostLib.inf index a0a6871780..78727780a9 100644 --- a/ArmPkg/Library/SemihostLib/SemihostLib.inf +++ b/ArmPkg/Library/SemihostLib/SemihostLib.inf @@ -2,6 +2,7 @@ # Semihosting JTAG lib # # Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.
+# Copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.
# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License @@ -25,7 +26,7 @@ # # The following information is for reference only and not required by the build tools. # -# VALID_ARCHITECTURES = ARM +# VALID_ARCHITECTURES = ARM AARCH64 # [Sources.common] SemihostLib.c @@ -33,10 +34,13 @@ [Sources.ARM] Arm/GccSemihost.S | GCC +[Sources.AARCH64] + AArch64/GccSemihost.S | GCC + [Packages] MdePkg/MdePkg.dec ArmPkg/ArmPkg.dec [LibraryClasses] BaseLib - + -- cgit v1.2.3