X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FEbc%2FSwitchStack.c;h=92cbef8d20a81f3ae141e0b48c0b90bf6c42df0f;hb=9344f0921518309295da89c221d10cbead8531aa;hp=1f76933ae0ff2126f49238e4e300a2a272ead242;hpb=c6aa36b6aa35958767c0006a2bd5edccc830b1c4;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/Ebc/SwitchStack.c b/MdePkg/Library/BaseLib/Ebc/SwitchStack.c index 1f76933ae0..92cbef8d20 100644 --- a/MdePkg/Library/BaseLib/Ebc/SwitchStack.c +++ b/MdePkg/Library/BaseLib/Ebc/SwitchStack.c @@ -1,22 +1,12 @@ /** @file Switch Stack functions. - Copyright (c) 2006 - 2007, Intel Corporation
- 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. - - Module Name: SwitchStack.c + Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+ SPDX-License-Identifier: BSD-2-Clause-Patent **/ -// -// Include common header file for this module. -// -#include + +#include "BaseLibInternals.h" /** Transfers control to a function starting with a new stack. @@ -39,7 +29,7 @@ function. @param NewStack A pointer to the new stack to use for the EntryPoint function. - @param Marker VA_LIST marker for the variable argument list. + @param Marker A VA_LIST marker for the variable argument list. **/ VOID @@ -58,11 +48,5 @@ InternalSwitchStack ( // This is to support compilation of CPU types that do not support assemblers // such as EBC // - - // - // Stack should be aligned with CPU_STACK_ALIGNMENT - // - ASSERT (((UINTN)NewStack & (CPU_STACK_ALIGNMENT - 1)) == 0); - EntryPoint (Context1, Context2); }