1. Restore the inline C implementation of GCC assembly files that was temporarily removed in Svn r10045.
2. Remove 139 GCC assembly files whose functionality have been covered in the inline C implementation. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10503 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
40d841f6a8
commit
cf683fedc7
@ -37,8 +37,8 @@
|
|||||||
Ia32/CpuSleep.asm | INTEL
|
Ia32/CpuSleep.asm | INTEL
|
||||||
Ia32/CpuFlushTlb.asm | INTEL
|
Ia32/CpuFlushTlb.asm | INTEL
|
||||||
|
|
||||||
Ia32/CpuSleep.S | GCC
|
Ia32/CpuSleepGcc.c | GCC
|
||||||
Ia32/CpuFlushTlb.S | GCC
|
Ia32/CpuFlushTlbGcc.c | GCC
|
||||||
|
|
||||||
[Sources.X64]
|
[Sources.X64]
|
||||||
X64/CpuFlushTlb.asm
|
X64/CpuFlushTlb.asm
|
||||||
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------ ;
|
|
||||||
# Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# CpuFlushTlb.Asm
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# CpuFlushTlb function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(CpuFlushTlb)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# CpuFlushTlb (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(CpuFlushTlb):
|
|
||||||
movl %cr3, %eax
|
|
||||||
movl %eax, %cr3
|
|
||||||
ret
|
|
32
MdePkg/Library/BaseCpuLib/Ia32/CpuFlushTlbGcc.c
Normal file
32
MdePkg/Library/BaseCpuLib/Ia32/CpuFlushTlbGcc.c
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
/** @file
|
||||||
|
CpuFlushTlb function for Ia32/X64 GCC.
|
||||||
|
|
||||||
|
Copyright (c) 2006 - 2008, Intel Corporation<BR>
|
||||||
|
Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>
|
||||||
|
All rights reserved. This program and the accompanying materials
|
||||||
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
|
**/
|
||||||
|
|
||||||
|
#include <Library/BaseLib.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.
|
||||||
|
|
||||||
|
Flushes all the Translation Lookaside Buffers(TLB) entries in a CPU.
|
||||||
|
|
||||||
|
**/
|
||||||
|
VOID
|
||||||
|
EFIAPI
|
||||||
|
CpuFlushTlb (
|
||||||
|
VOID
|
||||||
|
)
|
||||||
|
{
|
||||||
|
AsmWriteCr3 (AsmReadCr3 ());
|
||||||
|
}
|
||||||
|
|
@ -1,34 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------ ;
|
|
||||||
# Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# CpuSleep.Asm
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# CpuSleep function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(CpuSleep)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# CpuSleep (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(CpuSleep):
|
|
||||||
hlt
|
|
||||||
ret
|
|
33
MdePkg/Library/BaseCpuLib/Ia32/CpuSleepGcc.c
Normal file
33
MdePkg/Library/BaseCpuLib/Ia32/CpuSleepGcc.c
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/** @file
|
||||||
|
CpuSleep function for Ia32/X64 GCC.
|
||||||
|
|
||||||
|
Copyright (c) 2006 - 2008, Intel Corporation<BR>
|
||||||
|
Portions copyright (c) 2008-2009 Apple Inc. All rights reserved.<BR>
|
||||||
|
All rights reserved. This program and the accompanying materials
|
||||||
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
|
**/
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
Places the CPU in a sleep state until an interrupt is received.
|
||||||
|
|
||||||
|
Places the CPU in a sleep state until an interrupt is received. If interrupts
|
||||||
|
are disabled prior to calling this function, then the CPU will be placed in a
|
||||||
|
sleep state indefinitely.
|
||||||
|
|
||||||
|
**/
|
||||||
|
VOID
|
||||||
|
EFIAPI
|
||||||
|
CpuSleep (
|
||||||
|
VOID
|
||||||
|
)
|
||||||
|
{
|
||||||
|
__asm__ __volatile__ ("hlt"::: "memory");
|
||||||
|
}
|
||||||
|
|
@ -249,80 +249,14 @@
|
|||||||
Ia32/EnableCache.asm | INTEL
|
Ia32/EnableCache.asm | INTEL
|
||||||
Ia32/DisableCache.asm | INTEL
|
Ia32/DisableCache.asm | INTEL
|
||||||
|
|
||||||
|
Ia32/GccInline.c | GCC
|
||||||
Ia32/Thunk16.S | GCC
|
Ia32/Thunk16.S | GCC
|
||||||
Ia32/CpuBreakpoint.S | GCC
|
|
||||||
Ia32/CpuPause.S | GCC
|
|
||||||
Ia32/EnableDisableInterrupts.S | GCC
|
Ia32/EnableDisableInterrupts.S | GCC
|
||||||
Ia32/DisableInterrupts.S | GCC
|
|
||||||
Ia32/EnableInterrupts.S | GCC
|
|
||||||
Ia32/FlushCacheLine.S | GCC
|
|
||||||
Ia32/Invd.S | GCC
|
|
||||||
Ia32/Wbinvd.S | GCC
|
|
||||||
Ia32/EnablePaging64.S | GCC
|
Ia32/EnablePaging64.S | GCC
|
||||||
Ia32/DisablePaging32.S | GCC
|
Ia32/DisablePaging32.S | GCC
|
||||||
Ia32/EnablePaging32.S | GCC
|
Ia32/EnablePaging32.S | GCC
|
||||||
Ia32/Mwait.S | GCC
|
Ia32/Mwait.S | GCC
|
||||||
Ia32/Monitor.S | GCC
|
Ia32/Monitor.S | GCC
|
||||||
Ia32/ReadPmc.S | GCC
|
|
||||||
Ia32/ReadTsc.S | GCC
|
|
||||||
Ia32/WriteMm7.S | GCC
|
|
||||||
Ia32/WriteMm6.S | GCC
|
|
||||||
Ia32/WriteMm5.S | GCC
|
|
||||||
Ia32/WriteMm4.S | GCC
|
|
||||||
Ia32/WriteMm3.S | GCC
|
|
||||||
Ia32/WriteMm2.S | GCC
|
|
||||||
Ia32/WriteMm1.S | GCC
|
|
||||||
Ia32/WriteMm0.S | GCC
|
|
||||||
Ia32/ReadMm7.S | GCC
|
|
||||||
Ia32/ReadMm6.S | GCC
|
|
||||||
Ia32/ReadMm5.S | GCC
|
|
||||||
Ia32/ReadMm4.S | GCC
|
|
||||||
Ia32/ReadMm3.S | GCC
|
|
||||||
Ia32/ReadMm2.S | GCC
|
|
||||||
Ia32/ReadMm1.S | GCC
|
|
||||||
Ia32/ReadMm0.S | GCC
|
|
||||||
Ia32/FxRestore.S | GCC
|
|
||||||
Ia32/FxSave.S | GCC
|
|
||||||
Ia32/WriteLdtr.S | GCC
|
|
||||||
Ia32/ReadLdtr.S | GCC
|
|
||||||
Ia32/WriteIdtr.S | GCC
|
|
||||||
Ia32/ReadIdtr.S | GCC
|
|
||||||
Ia32/WriteGdtr.S | GCC
|
|
||||||
Ia32/ReadGdtr.S | GCC
|
|
||||||
Ia32/ReadTr.S | GCC
|
|
||||||
Ia32/ReadSs.S | GCC
|
|
||||||
Ia32/ReadGs.S | GCC
|
|
||||||
Ia32/ReadFs.S | GCC
|
|
||||||
Ia32/ReadEs.S | GCC
|
|
||||||
Ia32/ReadDs.S | GCC
|
|
||||||
Ia32/ReadCs.S | GCC
|
|
||||||
Ia32/WriteDr7.S | GCC
|
|
||||||
Ia32/WriteDr6.S | GCC
|
|
||||||
Ia32/WriteDr5.S | GCC
|
|
||||||
Ia32/WriteDr4.S | GCC
|
|
||||||
Ia32/WriteDr3.S | GCC
|
|
||||||
Ia32/WriteDr2.S | GCC
|
|
||||||
Ia32/WriteDr1.S | GCC
|
|
||||||
Ia32/WriteDr0.S | GCC
|
|
||||||
Ia32/ReadDr7.S | GCC
|
|
||||||
Ia32/ReadDr6.S | GCC
|
|
||||||
Ia32/ReadDr5.S | GCC
|
|
||||||
Ia32/ReadDr4.S | GCC
|
|
||||||
Ia32/ReadDr3.S | GCC
|
|
||||||
Ia32/ReadDr2.S | GCC
|
|
||||||
Ia32/ReadDr1.S | GCC
|
|
||||||
Ia32/ReadDr0.S | GCC
|
|
||||||
Ia32/WriteCr4.S | GCC
|
|
||||||
Ia32/WriteCr3.S | GCC
|
|
||||||
Ia32/WriteCr2.S | GCC
|
|
||||||
Ia32/WriteCr0.S | GCC
|
|
||||||
Ia32/ReadCr4.S | GCC
|
|
||||||
Ia32/ReadCr3.S | GCC
|
|
||||||
Ia32/ReadCr2.S | GCC
|
|
||||||
Ia32/ReadCr0.S | GCC
|
|
||||||
Ia32/WriteMsr64.S | GCC
|
|
||||||
Ia32/ReadMsr64.S | GCC
|
|
||||||
Ia32/ReadEflags.S | GCC
|
|
||||||
Ia32/CpuIdEx.S | GCC
|
Ia32/CpuIdEx.S | GCC
|
||||||
Ia32/CpuId.S | GCC
|
Ia32/CpuId.S | GCC
|
||||||
Ia32/LongJump.S | GCC
|
Ia32/LongJump.S | GCC
|
||||||
@ -464,83 +398,15 @@
|
|||||||
X86EnablePaging32.c
|
X86EnablePaging32.c
|
||||||
X86DisablePaging64.c
|
X86DisablePaging64.c
|
||||||
X86DisablePaging32.c
|
X86DisablePaging32.c
|
||||||
X64/WriteMsr64.S | GCC
|
X64/GccInline.c | GCC
|
||||||
X64/WriteMm7.S | GCC
|
|
||||||
X64/WriteMm6.S | GCC
|
|
||||||
X64/WriteMm5.S | GCC
|
|
||||||
X64/WriteMm4.S | GCC
|
|
||||||
X64/WriteMm3.S | GCC
|
|
||||||
X64/WriteMm2.S | GCC
|
|
||||||
X64/WriteMm1.S | GCC
|
|
||||||
X64/WriteMm0.S | GCC
|
|
||||||
X64/WriteLdtr.S | GCC
|
|
||||||
X64/WriteIdtr.S | GCC
|
|
||||||
X64/WriteGdtr.S | GCC
|
|
||||||
X64/WriteDr7.S | GCC
|
|
||||||
X64/WriteDr6.S | GCC
|
|
||||||
X64/WriteDr5.S | GCC
|
|
||||||
X64/WriteDr4.S | GCC
|
|
||||||
X64/WriteDr3.S | GCC
|
|
||||||
X64/WriteDr2.S | GCC
|
|
||||||
X64/WriteDr1.S | GCC
|
|
||||||
X64/WriteDr0.S | GCC
|
|
||||||
X64/WriteCr4.S | GCC
|
|
||||||
X64/WriteCr3.S | GCC
|
|
||||||
X64/WriteCr2.S | GCC
|
|
||||||
X64/WriteCr0.S | GCC
|
|
||||||
X64/Wbinvd.S | GCC
|
|
||||||
X64/Thunk16.S | GCC
|
X64/Thunk16.S | GCC
|
||||||
X64/SwitchStack.S | GCC
|
X64/SwitchStack.S | GCC
|
||||||
X64/SetJump.S | GCC
|
X64/SetJump.S | GCC
|
||||||
X64/ReadTsc.S | GCC
|
|
||||||
X64/ReadTr.S | GCC
|
|
||||||
X64/ReadSs.S | GCC
|
|
||||||
X64/ReadPmc.S | GCC
|
|
||||||
X64/ReadMsr64.S | GCC
|
|
||||||
X64/ReadMm7.S | GCC
|
|
||||||
X64/ReadMm6.S | GCC
|
|
||||||
X64/ReadMm5.S | GCC
|
|
||||||
X64/ReadMm4.S | GCC
|
|
||||||
X64/ReadMm3.S | GCC
|
|
||||||
X64/ReadMm2.S | GCC
|
|
||||||
X64/ReadMm1.S | GCC
|
|
||||||
X64/ReadMm0.S | GCC
|
|
||||||
X64/ReadLdtr.S | GCC
|
|
||||||
X64/ReadIdtr.S | GCC
|
|
||||||
X64/ReadGs.S | GCC
|
|
||||||
X64/ReadGdtr.S | GCC
|
|
||||||
X64/ReadFs.S | GCC
|
|
||||||
X64/ReadEs.S | GCC
|
|
||||||
X64/ReadEflags.S | GCC
|
|
||||||
X64/ReadDs.S | GCC
|
|
||||||
X64/ReadDr7.S | GCC
|
|
||||||
X64/ReadDr6.S | GCC
|
|
||||||
X64/ReadDr5.S | GCC
|
|
||||||
X64/ReadDr4.S | GCC
|
|
||||||
X64/ReadDr3.S | GCC
|
|
||||||
X64/ReadDr2.S | GCC
|
|
||||||
X64/ReadDr1.S | GCC
|
|
||||||
X64/ReadDr0.S | GCC
|
|
||||||
X64/ReadCs.S | GCC
|
|
||||||
X64/ReadCr4.S | GCC
|
|
||||||
X64/ReadCr3.S | GCC
|
|
||||||
X64/ReadCr2.S | GCC
|
|
||||||
X64/ReadCr0.S | GCC
|
|
||||||
X64/Mwait.S | GCC
|
|
||||||
X64/Monitor.S | GCC
|
|
||||||
X64/LongJump.S | GCC
|
X64/LongJump.S | GCC
|
||||||
X64/Invd.S | GCC
|
|
||||||
X64/FxSave.S | GCC
|
|
||||||
X64/FxRestore.S | GCC
|
|
||||||
X64/FlushCacheLine.S | GCC
|
|
||||||
X64/EnableInterrupts.S | GCC
|
|
||||||
X64/EnableDisableInterrupts.S | GCC
|
X64/EnableDisableInterrupts.S | GCC
|
||||||
X64/DisablePaging64.S | GCC
|
X64/DisablePaging64.S | GCC
|
||||||
X64/DisableInterrupts.S | GCC
|
|
||||||
X64/CpuPause.S | GCC
|
|
||||||
X64/CpuId.S | GCC
|
X64/CpuId.S | GCC
|
||||||
X64/CpuIdEx.S | GCC
|
X64/CpuIdEx.S | GCC
|
||||||
X64/CpuBreakpoint.S | GCC
|
|
||||||
X64/EnableCache.S | GCC
|
X64/EnableCache.S | GCC
|
||||||
X64/DisableCache.S | GCC
|
X64/DisableCache.S | GCC
|
||||||
ChkStkGcc.c | GCC
|
ChkStkGcc.c | GCC
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------ ;
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# CpuBreakpoint.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# CpuBreakpoint function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(CpuBreakpoint)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# CpuBreakpoint (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(CpuBreakpoint):
|
|
||||||
int $3
|
|
||||||
ret
|
|
@ -1,34 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------ ;
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# CpuPause.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# CpuPause function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(CpuPause)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# CpuPause (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(CpuPause):
|
|
||||||
pause
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# DisableInterrupts.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# DisableInterrupts function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(DisableInterrupts)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# DisableInterrupts (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(DisableInterrupts):
|
|
||||||
cli
|
|
||||||
ret
|
|
@ -1,36 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# FlushCacheLine.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmFlushCacheLine function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmFlushCacheLine)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# AsmFlushCacheLine (
|
|
||||||
# IN VOID *LinearAddress
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmFlushCacheLine):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
clflush (%eax)
|
|
||||||
ret
|
|
@ -1,36 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# FxRestore.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# InternalX86FxRestore function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(InternalX86FxRestore)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# InternalX86FxRestore (
|
|
||||||
# IN CONST IA32_FX_BUFFER *Buffer
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(InternalX86FxRestore):
|
|
||||||
movl 4(%esp), %eax # Buffer must be 16-byte aligned
|
|
||||||
fxrstor (%eax)
|
|
||||||
ret
|
|
@ -1,36 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# FxSave.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# InternalX86FxSave function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(InternalX86FxSave)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# InternalX86FxSave (
|
|
||||||
# OUT IA32_FX_BUFFER *Buffer
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(InternalX86FxSave):
|
|
||||||
movl 4(%esp), %eax # Buffer must be 16-byte aligned
|
|
||||||
fxsave (%eax)
|
|
||||||
ret
|
|
1758
MdePkg/Library/BaseLib/Ia32/GccInline.c
Normal file
1758
MdePkg/Library/BaseLib/Ia32/GccInline.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# Invd.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmInvd function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmInvd)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# AsmInvd (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmInvd):
|
|
||||||
invd
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadCr0.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadCr0 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadCr0)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadCr0 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadCr0):
|
|
||||||
movl %cr0, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadCr2.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadCr2 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadCr2)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadCr2 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadCr2):
|
|
||||||
movl %cr2, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadCr3.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadCr3 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadCr3)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadCr3 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadCr3):
|
|
||||||
movl %cr3, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadCr4.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadCr4 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadCr4)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadCr4 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadCr4):
|
|
||||||
movl %cr4, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadCs.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadCs function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadCs)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINT16
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadCs (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadCs):
|
|
||||||
movl %cs, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDr0.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDr0 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDr0)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDr0 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadDr0):
|
|
||||||
movl %dr0, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDr1.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDr1 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDr1)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDr1 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadDr1):
|
|
||||||
movl %dr1, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDr2.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDr2 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDr2)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDr2 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadDr2):
|
|
||||||
movl %dr2, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDr3.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDr3 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDr3)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDr3 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadDr3):
|
|
||||||
movl %dr3, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDr4.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDr4 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDr4)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDr4 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadDr4):
|
|
||||||
movl %dr4, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDr5.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDr5 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDr5)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDr5 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadDr5):
|
|
||||||
movl %dr5, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDr6.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDr6 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDr6)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDr6 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadDr6):
|
|
||||||
movl %dr6, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDr7.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDr7 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDr7)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDr7 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadDr7):
|
|
||||||
movl %dr7, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDs.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDs function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDs)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINT16
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDs (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadDs):
|
|
||||||
movl %ds, %eax
|
|
||||||
ret
|
|
@ -1,36 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadEflags.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadEflags function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadEflags)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadEflags (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadEflags):
|
|
||||||
pushfl
|
|
||||||
pop %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadEs.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadEs function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadEs)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINT16
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadEs (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadEs):
|
|
||||||
movl %es, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadFs.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadFs function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadFs)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINT16
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadFs (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadFs):
|
|
||||||
movl %fs, %eax
|
|
||||||
ret
|
|
@ -1,36 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadGdtr.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# InternalX86ReadGdtr function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(InternalX86ReadGdtr)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# InternalX86ReadGdtr (
|
|
||||||
# OUT IA32_DESCRIPTOR *Gdtr
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(InternalX86ReadGdtr):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
sgdt (%eax)
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadGs.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadGs function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadGs)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINT16
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadGs (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadGs):
|
|
||||||
movl %gs, %eax
|
|
||||||
ret
|
|
@ -1,36 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadIdtr.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# InternalX86ReadIdtr function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(InternalX86ReadIdtr)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# InternalX86ReadIdtr (
|
|
||||||
# OUT IA32_DESCRIPTOR *Idtr
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(InternalX86ReadIdtr):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
sidt (%eax)
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadLdtr.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadLdtr function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadLdtr)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINT16
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadLdtr (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadLdtr):
|
|
||||||
sldt %ax
|
|
||||||
ret
|
|
@ -1,39 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadMm0.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadMm0 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadMm0)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadMm0 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadMm0):
|
|
||||||
push %eax
|
|
||||||
push %eax
|
|
||||||
movq %mm0, (%esp)
|
|
||||||
pop %eax
|
|
||||||
pop %edx
|
|
||||||
ret
|
|
@ -1,39 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadMm1.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadMm1 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadMm1)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadMm1 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadMm1):
|
|
||||||
push %eax
|
|
||||||
push %eax
|
|
||||||
movq %mm1, (%esp)
|
|
||||||
pop %eax
|
|
||||||
pop %edx
|
|
||||||
ret
|
|
@ -1,39 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadMm2.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadMm2 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadMm2)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadMm2 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadMm2):
|
|
||||||
push %eax
|
|
||||||
push %eax
|
|
||||||
movq %mm2, (%esp)
|
|
||||||
pop %eax
|
|
||||||
pop %edx
|
|
||||||
ret
|
|
@ -1,39 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadMm3.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadMm3 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadMm3)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadMm3 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadMm3):
|
|
||||||
push %eax
|
|
||||||
push %eax
|
|
||||||
movq %mm3, (%esp)
|
|
||||||
pop %eax
|
|
||||||
pop %edx
|
|
||||||
ret
|
|
@ -1,39 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadMm4.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadMm4 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadMm4)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadMm4 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadMm4):
|
|
||||||
push %eax
|
|
||||||
push %eax
|
|
||||||
movq %mm4, (%esp)
|
|
||||||
pop %eax
|
|
||||||
pop %edx
|
|
||||||
ret
|
|
@ -1,39 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadMm5.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadMm5 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadMm5)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadMm5 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadMm5):
|
|
||||||
push %eax
|
|
||||||
push %eax
|
|
||||||
movq %mm5, (%esp)
|
|
||||||
pop %eax
|
|
||||||
pop %edx
|
|
||||||
ret
|
|
@ -1,39 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadMm6.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadMm6 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadMm6)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadMm6 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadMm6):
|
|
||||||
push %eax
|
|
||||||
push %eax
|
|
||||||
movq %mm6, (%esp)
|
|
||||||
pop %eax
|
|
||||||
pop %edx
|
|
||||||
ret
|
|
@ -1,39 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadMm7.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadMm7 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadMm7)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadMm7 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadMm7):
|
|
||||||
push %eax
|
|
||||||
push %eax
|
|
||||||
movq %mm7, (%esp)
|
|
||||||
pop %eax
|
|
||||||
pop %edx
|
|
||||||
ret
|
|
@ -1,36 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadPmc.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadPmc function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadPmc)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINT64
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadPmc (
|
|
||||||
# IN UINT32 PmcIndex
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadPmc):
|
|
||||||
movl 4(%esp), %ecx
|
|
||||||
rdpmc
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadTsc.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadTsc function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadTsc)
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINT64
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadTsc (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_PFX(AsmReadTsc):
|
|
||||||
rdtsc
|
|
||||||
ret
|
|
@ -1,34 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# Wbinvd.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWbinvd function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWbinvd (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWbinvd)
|
|
||||||
ASM_PFX(AsmWbinvd):
|
|
||||||
wbinvd
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteCr0.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteCr0 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteCr0 (
|
|
||||||
# IN UINTN Cr0
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteCr0)
|
|
||||||
ASM_PFX(AsmWriteCr0):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
movl %eax, %cr0
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteCr2.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteCr2 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteCr2 (
|
|
||||||
# IN UINTN Cr2
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteCr2)
|
|
||||||
ASM_PFX(AsmWriteCr2):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
movl %eax, %cr2
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteCr3.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteCr3 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteCr3 (
|
|
||||||
# IN UINTN Cr3
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteCr3)
|
|
||||||
ASM_PFX(AsmWriteCr3):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
movl %eax, %cr3
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteCr4.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteCr4 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteCr4 (
|
|
||||||
# IN UINTN Cr4
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteCr4)
|
|
||||||
ASM_PFX(AsmWriteCr4):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
movl %eax, %cr4
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteDr0.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteDr0 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteDr0 (
|
|
||||||
# IN UINTN Value
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteDr0)
|
|
||||||
ASM_PFX(AsmWriteDr0):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
movl %eax, %dr0
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteDr1.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteDr1 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteDr1 (
|
|
||||||
# IN UINTN Value
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteDr1)
|
|
||||||
ASM_PFX(AsmWriteDr1):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
movl %eax, %dr1
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteDr2.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteDr2 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteDr2 (
|
|
||||||
# IN UINTN Value
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteDr2)
|
|
||||||
ASM_PFX(AsmWriteDr2):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
movl %eax, %dr2
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteDr3.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteDr3 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteDr3 (
|
|
||||||
# IN UINTN Value
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteDr3)
|
|
||||||
ASM_PFX(AsmWriteDr3):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
movl %eax, %dr3
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteDr4.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteDr4 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteDr4 (
|
|
||||||
# IN UINTN Value
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteDr4)
|
|
||||||
ASM_PFX(AsmWriteDr4):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
movl %eax, %dr4
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteDr5.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteDr5 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteDr5 (
|
|
||||||
# IN UINTN Value
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteDr5)
|
|
||||||
ASM_PFX(AsmWriteDr5):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
movl %eax, %dr5
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteDr6.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteDr6 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteDr6 (
|
|
||||||
# IN UINTN Value
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteDr6)
|
|
||||||
ASM_PFX(AsmWriteDr6):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
movl %eax, %dr6
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteDr7.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteDr7 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteDr7 (
|
|
||||||
# IN UINTN Value
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteDr7)
|
|
||||||
ASM_PFX(AsmWriteDr7):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
movl %eax, %dr7
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteGdtr.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# InternalX86WriteGdtr function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# InternalX86WriteGdtr (
|
|
||||||
# OUT IA32_DESCRIPTOR *Gdtr
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(InternalX86WriteGdtr)
|
|
||||||
ASM_PFX(InternalX86WriteGdtr):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
lgdt (%eax)
|
|
||||||
ret
|
|
@ -1,38 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteIdtr.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# InternalX86WriteIdtr function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# InternalX86WriteIdtr (
|
|
||||||
# OUT IA32_DESCRIPTOR *Idtr
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(InternalX86WriteIdtr)
|
|
||||||
ASM_PFX(InternalX86WriteIdtr):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
pushfl
|
|
||||||
cli
|
|
||||||
lidt (%eax)
|
|
||||||
popfl
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteLdtr.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteLdtr function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteLdtr (
|
|
||||||
# IN UINT16 Ldtr
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteLdtr)
|
|
||||||
ASM_PFX(AsmWriteLdtr):
|
|
||||||
movl 4(%esp), %eax
|
|
||||||
lldtw %ax
|
|
||||||
ret
|
|
@ -1,34 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteMm0.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteMm0 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteMm0 (
|
|
||||||
# IN UINT64 Value
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteMm0)
|
|
||||||
ASM_PFX(AsmWriteMm0):
|
|
||||||
movq 4(%esp), %mm0
|
|
||||||
ret
|
|
@ -1,34 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteMm1.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteMm1 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteMm1 (
|
|
||||||
# IN UINT64 Value
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteMm1)
|
|
||||||
ASM_PFX(AsmWriteMm1):
|
|
||||||
movq 4(%esp), %mm1
|
|
||||||
ret
|
|
@ -1,34 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteMm2.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteMm2 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteMm2 (
|
|
||||||
# IN UINT64 Value
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteMm2)
|
|
||||||
ASM_PFX(AsmWriteMm2):
|
|
||||||
movq 4(%esp), %mm2
|
|
||||||
ret
|
|
@ -1,34 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteMm3.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteMm3 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteMm3 (
|
|
||||||
# IN UINT64 Value
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteMm3)
|
|
||||||
ASM_PFX(AsmWriteMm3):
|
|
||||||
movq 4(%esp), %mm3
|
|
||||||
ret
|
|
@ -1,34 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteMm4.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteMm4 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteMm4 (
|
|
||||||
# IN UINT64 Value
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteMm4)
|
|
||||||
ASM_PFX(AsmWriteMm4):
|
|
||||||
movq 4(%esp), %mm4
|
|
||||||
ret
|
|
@ -1,34 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteMm5.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteMm5 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteMm5 (
|
|
||||||
# IN UINT64 Value
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteMm5)
|
|
||||||
ASM_PFX(AsmWriteMm5):
|
|
||||||
movq 4(%esp), %mm5
|
|
||||||
ret
|
|
@ -1,34 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteMm6.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteMm6 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteMm6 (
|
|
||||||
# IN UINT64 Value
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteMm6)
|
|
||||||
ASM_PFX(AsmWriteMm6):
|
|
||||||
movq 4(%esp), %mm6
|
|
||||||
ret
|
|
@ -1,34 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# WriteMm7.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmWriteMm7 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# AsmWriteMm7 (
|
|
||||||
# IN UINT64 Value
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmWriteMm7)
|
|
||||||
ASM_PFX(AsmWriteMm7):
|
|
||||||
movq 4(%esp), %mm7
|
|
||||||
ret
|
|
@ -1,34 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------ ;
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# CpuPause.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# CpuPause function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# CpuPause (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(CpuPause)
|
|
||||||
ASM_PFX(CpuPause):
|
|
||||||
pause
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# DisableInterrupts.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# DisableInterrupts function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# DisableInterrupts (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(DisableInterrupts)
|
|
||||||
ASM_PFX(DisableInterrupts):
|
|
||||||
cli
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# EnableInterrupts.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# EnableInterrupts function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# EnableInterrupts (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(EnableInterrupts)
|
|
||||||
ASM_PFX(EnableInterrupts):
|
|
||||||
sti
|
|
||||||
ret
|
|
@ -1,36 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# FlushCacheLine.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmFlushCacheLine function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID *
|
|
||||||
# EFIAPI
|
|
||||||
# AsmFlushCacheLine (
|
|
||||||
# IN VOID *LinearAddress
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmFlushCacheLine)
|
|
||||||
ASM_PFX(AsmFlushCacheLine):
|
|
||||||
clflush (%rcx)
|
|
||||||
mov %rcx, %rax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# FxRestore.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmFxRestore function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# InternalX86FxRestore (
|
|
||||||
# IN CONST IA32_FX_BUFFER *Buffer
|
|
||||||
# )#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(InternalX86FxRestore)
|
|
||||||
ASM_PFX(InternalX86FxRestore):
|
|
||||||
fxrstor (%rcx)
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# FxSave.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmFxSave function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# InternalX86FxSave (
|
|
||||||
# OUT IA32_FX_BUFFER *Buffer
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(InternalX86FxSave)
|
|
||||||
ASM_PFX(InternalX86FxSave):
|
|
||||||
fxsave (%rcx)
|
|
||||||
ret
|
|
1806
MdePkg/Library/BaseLib/X64/GccInline.c
Normal file
1806
MdePkg/Library/BaseLib/X64/GccInline.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# Invd.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmInvd function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# AsmInvd (
|
|
||||||
# VOID
|
|
||||||
# )#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmInvd)
|
|
||||||
ASM_PFX(AsmInvd):
|
|
||||||
invd
|
|
||||||
ret
|
|
@ -1,40 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# Monitor.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmMonitor function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINT64
|
|
||||||
# EFIAPI
|
|
||||||
# AsmMonitor (
|
|
||||||
# IN UINTN Eax,
|
|
||||||
# IN UINTN Ecx,
|
|
||||||
# IN UINTN Edx
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmMonitor)
|
|
||||||
ASM_PFX(AsmMonitor):
|
|
||||||
mov %ecx,%eax
|
|
||||||
mov %edx,%ecx
|
|
||||||
mov %r8d,%edx
|
|
||||||
monitor
|
|
||||||
ret
|
|
@ -1,38 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# Mwait.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmMwait function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINT64
|
|
||||||
# EFIAPI
|
|
||||||
# AsmMwait (
|
|
||||||
# IN UINTN Eax,
|
|
||||||
# IN UINTN Ecx
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmMwait)
|
|
||||||
ASM_PFX(AsmMwait):
|
|
||||||
mov %ecx,%eax
|
|
||||||
mov %edx,%ecx
|
|
||||||
mwait
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadCr0.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadCr0 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadCr0 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadCr0)
|
|
||||||
ASM_PFX(AsmReadCr0):
|
|
||||||
mov %cr0, %rax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadCr2.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadCr2 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadCr2 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadCr2)
|
|
||||||
ASM_PFX(AsmReadCr2):
|
|
||||||
mov %cr2, %rax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadCr3.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadCr3 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadCr3 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadCr3)
|
|
||||||
ASM_PFX(AsmReadCr3):
|
|
||||||
mov %cr3, %rax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadCr4.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadCr4 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadCr4 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadCr4)
|
|
||||||
ASM_PFX(AsmReadCr4):
|
|
||||||
mov %cr4, %rax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadCs.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadCs function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINT16
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadCs (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadCs)
|
|
||||||
ASM_PFX(AsmReadCs):
|
|
||||||
mov %cs, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDr0.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDr0 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDr0 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDr0)
|
|
||||||
ASM_PFX(AsmReadDr0):
|
|
||||||
mov %dr0, %rax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDr1.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDr1 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDr1 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDr1)
|
|
||||||
ASM_PFX(AsmReadDr1):
|
|
||||||
mov %dr1, %rax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDr2.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDr2 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDr2 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDr2)
|
|
||||||
ASM_PFX(AsmReadDr2):
|
|
||||||
mov %dr2, %rax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDr3.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDr3 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDr3 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDr3)
|
|
||||||
ASM_PFX(AsmReadDr3):
|
|
||||||
mov %dr3, %rax
|
|
||||||
ret
|
|
@ -1,36 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDr4.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDr4 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDr4 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDr4)
|
|
||||||
ASM_PFX(AsmReadDr4):
|
|
||||||
#DB 0fh, 21h, 0e0h
|
|
||||||
mov %dr4, %rax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDr5.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDr5 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDr5 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDr5)
|
|
||||||
ASM_PFX(AsmReadDr5):
|
|
||||||
mov %dr5, %rax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDr6.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDr6 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDr6 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDr6)
|
|
||||||
ASM_PFX(AsmReadDr6):
|
|
||||||
mov %dr6, %rax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDr7.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDr7 function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDr7 (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDr7)
|
|
||||||
ASM_PFX(AsmReadDr7):
|
|
||||||
mov %dr7, %rax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadDs.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadDs function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINT16
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadDs (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadDs)
|
|
||||||
ASM_PFX(AsmReadDs):
|
|
||||||
movl %ds, %eax
|
|
||||||
ret
|
|
@ -1,36 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadEflags.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadEflags function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINTN
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadEflags (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadEflags)
|
|
||||||
ASM_PFX(AsmReadEflags):
|
|
||||||
pushfq
|
|
||||||
pop %rax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadEs.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadEs function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINT16
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadEs (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadEs)
|
|
||||||
ASM_PFX(AsmReadEs):
|
|
||||||
mov %es, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadFs.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadFs function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINT16
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadFs (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadFs)
|
|
||||||
ASM_PFX(AsmReadFs):
|
|
||||||
mov %fs, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadGdtr.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadGdtr function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# InternalX86ReadGdtr (
|
|
||||||
# OUT IA32_DESCRIPTOR *Gdtr
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(InternalX86ReadGdtr)
|
|
||||||
ASM_PFX(InternalX86ReadGdtr):
|
|
||||||
sgdt (%rcx)
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadGs.S
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadGs function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINT16
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadGs (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadGs)
|
|
||||||
ASM_PFX(AsmReadGs):
|
|
||||||
mov %gs, %eax
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadIdtr.AS
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadIdtr function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# VOID
|
|
||||||
# EFIAPI
|
|
||||||
# InternalX86ReadIdtr (
|
|
||||||
# OUT IA32_DESCRIPTOR *Idtr
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(InternalX86ReadIdtr)
|
|
||||||
ASM_PFX(InternalX86ReadIdtr):
|
|
||||||
sidt (%rcx)
|
|
||||||
ret
|
|
@ -1,35 +0,0 @@
|
|||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
|
||||||
# This program and the accompanying materials
|
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
|
||||||
# http://opensource.org/licenses/bsd-license.php
|
|
||||||
#
|
|
||||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
||||||
#
|
|
||||||
# Module Name:
|
|
||||||
#
|
|
||||||
# ReadLdtr.AS
|
|
||||||
#
|
|
||||||
# Abstract:
|
|
||||||
#
|
|
||||||
# AsmReadLdtr function
|
|
||||||
#
|
|
||||||
# Notes:
|
|
||||||
#
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
# UINT16
|
|
||||||
# EFIAPI
|
|
||||||
# AsmReadLdtr (
|
|
||||||
# VOID
|
|
||||||
# );
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
ASM_GLOBAL ASM_PFX(AsmReadLdtr)
|
|
||||||
ASM_PFX(AsmReadLdtr):
|
|
||||||
sldt %eax
|
|
||||||
ret
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user