mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
AsmMacroIoLib.h and AsmMacroIoLibV8.h are used by the CompilerIntrinsicsLib, which is moving to MdePkg. These functions provide standard definitions for ARM/AARCH64 assembly code, respectively, and so are moved to the arch directories in MdePkg to avoid MdePkg having a dependency on ArmPkg. Now that the files are in Arm/ and AArch64/ directories, the filenames are changed to AsmMacroLib.h as we can distinguish the architecture from the path. AsmMacroIoLib.inc is unused and so is removed. Continuous-integration-options: PatchCheck.ignore-multi-package Signed-off-by: Oliver Smith-Denny <osde@linux.microsoft.com>
33 lines
871 B
ArmAsm
33 lines
871 B
ArmAsm
#------------------------------------------------------------------------------
|
|
#
|
|
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
|
# Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
#------------------------------------------------------------------------------
|
|
|
|
#include <AsmMacroLib.h>
|
|
|
|
#/**
|
|
# This allows the caller to switch the stack and return
|
|
#
|
|
# @param StackDelta Signed amount by which to modify the stack pointer
|
|
#
|
|
# @return Nothing. Goes to the Entry Point passing in the new parameters
|
|
#
|
|
#**/
|
|
#VOID
|
|
#EFIAPI
|
|
#SecSwitchStack (
|
|
# VOID *StackDelta
|
|
# )#
|
|
#
|
|
ASM_FUNC(SecSwitchStack)
|
|
mov x1, sp
|
|
add x1, x0, x1
|
|
mov sp, x1
|
|
ret
|
|
|