]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/InternalSwitchStack.c
MdePkg/BaseLib: Support IA32 processors without CLFLUSH
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / InternalSwitchStack.c
index c918f9f5718338ce72185525a707fad3f16e3a00..4b82b339e955d0620d8dec1213e193296f86ca63 100644 (file)
@@ -1,19 +1,19 @@
 /** @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
+  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
 \r
-  Module Name:  InternalSwitchStack.c\r
-\r
 **/\r
 \r
+#include "BaseLibInternals.h"\r
+\r
 /**\r
   Transfers control to a function starting with a new stack.\r
 \r
@@ -50,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