/** @file\r
SwitchStack() function for IA-32.\r
\r
- Copyright (c) 2006 - 2007, Intel Corporation<BR>\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
-\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
-//\r
-// Include common header file for this module.\r
-//\r
-#include <BaseLibInternals.h>\r
-\r
+#include "BaseLibInternals.h"\r
\r
/**\r
Transfers control to a function starting with a new stack.\r
{\r
BASE_LIBRARY_JUMP_BUFFER JumpBuffer;\r
\r
- //\r
- // Stack should be aligned with CPU_STACK_ALIGNMENT\r
- //\r
- ASSERT (((UINTN)NewStack & (CPU_STACK_ALIGNMENT - 1)) == 0);\r
-\r
JumpBuffer.Eip = (UINTN)EntryPoint;\r
JumpBuffer.Esp = (UINTN)NewStack - sizeof (VOID*);\r
JumpBuffer.Esp -= sizeof (Context1) + sizeof (Context2);\r