SwitchStack.S 808 B

1234567891011121314151617181920212223242526272829303132
  1. #------------------------------------------------------------------------------
  2. #
  3. # Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
  4. # Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
  5. # SPDX-License-Identifier: BSD-2-Clause-Patent
  6. #
  7. #------------------------------------------------------------------------------
  8. #include <AsmMacroIoLib.h>
  9. #/**
  10. # This allows the caller to switch the stack and return
  11. #
  12. # @param StackDelta Signed amount by which to modify the stack pointer
  13. #
  14. # @return Nothing. Goes to the Entry Point passing in the new parameters
  15. #
  16. #**/
  17. #VOID
  18. #EFIAPI
  19. #SecSwitchStack (
  20. # VOID *StackDelta
  21. # )#
  22. #
  23. ASM_FUNC(SecSwitchStack)
  24. mov R1, R13
  25. add R1, R0, R1
  26. mov R13, R1
  27. bx LR