ArmPkg/ArmHvcLib: switch to ASM_FUNC() asm macro

Annotate functions with ASM_FUNC() so that they are emitted into
separate sections.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
Ard Biesheuvel 2016-08-10 14:34:17 +02:00
parent f0883e35de
commit de656e666c
2 changed files with 7 additions and 12 deletions

View File

@ -1,6 +1,6 @@
// //
// Copyright (c) 2012-2014, ARM Limited. All rights reserved. // Copyright (c) 2012-2014, ARM Limited. All rights reserved.
// Copyright (c) 2014, Linaro Limited. All rights reserved. // Copyright (c) 2014-2016, Linaro Limited. All rights reserved.
// //
// This program and the accompanying materials // This program and the accompanying materials
// are licensed and made available under the terms and conditions of the BSD License // are licensed and made available under the terms and conditions of the BSD License
@ -12,12 +12,9 @@
// //
// //
.text #include <AsmMacroIoLibV8.h>
.align 3
GCC_ASM_EXPORT(ArmCallHvc) ASM_FUNC(ArmCallHvc)
ASM_PFX(ArmCallHvc):
// Push x0 on the stack - The stack must always be quad-word aligned // Push x0 on the stack - The stack must always be quad-word aligned
str x0, [sp, #-16]! str x0, [sp, #-16]!

View File

@ -1,6 +1,6 @@
// //
// Copyright (c) 2012-2014, ARM Limited. All rights reserved. // Copyright (c) 2012-2014, ARM Limited. All rights reserved.
// Copyright (c) 2014, Linaro Limited. All rights reserved. // Copyright (c) 2014-2016, Linaro Limited. All rights reserved.
// //
// This program and the accompanying materials // This program and the accompanying materials
// are licensed and made available under the terms and conditions of the BSD License // are licensed and made available under the terms and conditions of the BSD License
@ -12,13 +12,11 @@
// //
// //
.text #include <AsmMacroIoLibV8.h>
.align 3
.arch_extension virt .arch_extension virt
GCC_ASM_EXPORT(ArmCallHvc) ASM_FUNC(ArmCallHvc)
ASM_PFX(ArmCallHvc):
push {r4-r8} push {r4-r8}
// r0 will be popped just after the HVC call // r0 will be popped just after the HVC call
push {r0} push {r0}