]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFsp2Pkg/Library/BaseFspSwitchStackLib/Ia32/Stack.asm
IntelFsp2Pkg BaseFspSwitchStackLib: Remove MASM/GAS files
[mirror_edk2.git] / IntelFsp2Pkg / Library / BaseFspSwitchStackLib / Ia32 / Stack.asm
diff --git a/IntelFsp2Pkg/Library/BaseFspSwitchStackLib/Ia32/Stack.asm b/IntelFsp2Pkg/Library/BaseFspSwitchStackLib/Ia32/Stack.asm
deleted file mode 100644 (file)
index 1efab52..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2014 - 2015, 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
-;\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
-; Abstract:\r
-;\r
-;   Switch the stack from temporary memory to permenent memory.\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT32\r
-; EFIAPI\r
-; Pei2LoaderSwitchStack (\r
-;   VOID\r
-;   )\r
-;------------------------------------------------------------------------------\r
-EXTERNDEF  C   MeasurePoint:PROC\r
-Pei2LoaderSwitchStack   PROC C PUBLIC\r
-    xor     eax, eax\r
-    jmp     FspSwitchStack\r
-Pei2LoaderSwitchStack   ENDP\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT32\r
-; EFIAPI\r
-; Loader2PeiSwitchStack (\r
-;   VOID\r
-;   )\r
-;------------------------------------------------------------------------------\r
-Loader2PeiSwitchStack   PROC C PUBLIC\r
-    jmp     FspSwitchStack\r
-Loader2PeiSwitchStack   ENDP\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT32\r
-; EFIAPI\r
-; FspSwitchStack (\r
-;   VOID\r
-;   )\r
-;------------------------------------------------------------------------------\r
-EXTERNDEF  C   SwapStack:PROC\r
-FspSwitchStack   PROC C PUBLIC\r
-    ; Save current contexts\r
-    push    eax\r
-    pushfd\r
-    cli\r
-    pushad\r
-    sub     esp, 8\r
-    sidt    fword ptr [esp]\r
-\r
-    ; Load new stack\r
-    push    esp\r
-    call    SwapStack\r
-    mov     esp, eax\r
-\r
-    ; Restore previous contexts\r
-    lidt    fword ptr [esp]\r
-    add     esp, 8\r
-    popad\r
-    popfd\r
-    add     esp, 4\r
-    ret\r
-FspSwitchStack   ENDP\r
-\r
-    END\r