From 7f22d35110e43be45a0e16a2e944feebbf51e4ed Mon Sep 17 00:00:00 2001 From: mdkinney Date: Mon, 24 Aug 2009 23:53:23 +0000 Subject: Fix file headers Move stack alignment check from CPU specific files into common SwitchStack() function and add VA_END() to SwitchStack(). Fix incorrect syntax for ASM_FUNCTION_REMOVE_IF_UNREFERENCED git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9193 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c') diff --git a/MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c b/MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c index ef337a1839..0bff206fad 100644 --- a/MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c +++ b/MdePkg/Library/BaseLib/Arm/InternalSwitchStack.c @@ -2,7 +2,7 @@ SwitchStack() function for ARM. Copyright (c) 2006 - 2007, Intel Corporation
- Portions copyright (c) 2008-2009 Apple Inc.
+ Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.
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 @@ -15,6 +15,16 @@ #include "BaseLibInternals.h" +VOID +EFIAPI +InternalSwitchStackAsm ( + IN SWITCH_STACK_ENTRY_POINT EntryPoint, + IN VOID *Context1, OPTIONAL + IN VOID *Context2, OPTIONAL + IN VOID *NewStack + ); + + /** Transfers control to a function starting with a new stack. @@ -50,10 +60,5 @@ InternalSwitchStack ( ) { - // - // Stack should be aligned with CPU_STACK_ALIGNMENT - // - ASSERT (((UINTN)NewStack & (CPU_STACK_ALIGNMENT - 1)) == 0); - InternalSwitchStackAsm (EntryPoint, Context1, Context2, NewStack); } -- cgit v1.2.3