+++ /dev/null
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-#\r
-# Module Name:\r
-#\r
-# ReadIdtr.Asm\r
-#\r
-# Abstract:\r
-#\r
-# AsmPeiSevicesTablePointer function\r
-#\r
-# Notes:\r
-#\r
-#------------------------------------------------------------------------------\r
-\r
-.globl ASM_PFX(AsmPeiSevicesTablePointer)\r
-\r
-#------------------------------------------------------------------------------\r
-# EFI_PEI_SERVICES **\r
-# EFIAPI\r
-# AsmPeiSevicesTablePointer (\r
-# );\r
-#------------------------------------------------------------------------------\r
-ASM_PFX(AsmPeiSevicesTablePointer):\r
- movl 4(%esp), %eax\r
- sidt (%eax)\r
- movl -4(%eax), %eax\r
- ret\r
+++ /dev/null
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, Intel Corporation\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
-;\r
-;------------------------------------------------------------------------------\r
-\r
- .386\r
- .model flat,C\r
- .code\r
-\r
-;------------------------------------------------------------------------------\r
-; EFI_PEI_SERVICES **\r
-; EFIAPI\r
-; AsmPeiSevicesTablePointer (\r
-; );\r
-;------------------------------------------------------------------------------\r
-PeiServicesTablePointer PROC\r
- mov eax, [esp + 4]\r
- sidt fword ptr [eax]\r
- mov eax, [eax - 4]\r
- ret\r
-PeiServicesTablePointer ENDP\r
-\r
- END\r
+++ /dev/null
-/** @file\r
- AsmReadIdtr function\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
-\r
-**/\r
-\r
-//\r
-// Include common header file for this module.\r
-//\r
-#include "InternalPeiServicesTablePointer.h"\r
-\r
-EFI_PEI_SERVICES **\r
-EFIAPI\r
-AsmPeiSevicesTablePointer (\r
- VOID\r
- )\r
-{\r
- _asm {\r
- sidt fword ptr [eax]\r
- mov eax, [eax - 4]\r
- }\r
-}\r
+++ /dev/null
-#------------------------------------------------------------------------------\r
-#\r
-# Copyright (c) 2006, Intel Corporation\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
-#\r
-#------------------------------------------------------------------------------\r
-\r
-\r
-#------------------------------------------------------------------------------\r
-# EFI_PEI_SERVICES **\r
-# EFIAPI\r
-# AsmPeiSevicesTablePointer (\r
-# );\r
-#------------------------------------------------------------------------------\r
-.global AsmPeiSevicesTablePointer;\r
-.align 16;\r
-AsmPeiSevicesTablePointer:\r
- sidt (%rcx)\r
- movq -8(%rcx), %rcx\r
- ret\r
+++ /dev/null
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, Intel Corporation\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
-;\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
- .code\r
-\r
-;------------------------------------------------------------------------------\r
-; EFI_PEI_SERVICES **\r
-; EFIAPI\r
-; AsmPeiSevicesTablePointer (\r
-; );\r
-;------------------------------------------------------------------------------\r
-AsmPeiSevicesTablePointer PROC\r
- sidt fword ptr [rcx]\r
- mov rcx, [rcx - 8]\r
- ret\r
-AsmPeiSevicesTablePointer ENDP\r
-\r
- END\r