]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/InternalSwitchStack.c
Update the copyright notice format
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / InternalSwitchStack.c
index 2fb0710cc672f51aeb773f8c4368bd40dea0d33e..29077f2ccaaf77ebc7c22a156ce37a82ad4cc87f 100644 (file)
@@ -1,8 +1,8 @@
 /** @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
+  Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+  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
   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
 \r
-  Module Name:  InternalSwitchStack.c\r
-\r
 **/\r
 \r
-//\r
-// Include common header file for this module.\r
-//\r
-#include "CommonHeader.h"\r
+#include "BaseLibInternals.h"\r
 \r
 /**\r
   Transfers control to a function starting with a new stack.\r
@@ -55,11 +50,6 @@ InternalSwitchStack (
 {\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