mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
Add .S file for GCC tool-chain for EfiRuntimeLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5750 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
17b36c32d4
commit
b59923ae17
@ -38,7 +38,8 @@ COMPONENT_TYPE = LIBRARY
|
|||||||
ia32/PlatformIoLib.c
|
ia32/PlatformIoLib.c
|
||||||
ia32/Fvb.c
|
ia32/Fvb.c
|
||||||
ia32/CpuFlushCache.c | MSFT
|
ia32/CpuFlushCache.c | MSFT
|
||||||
ia32/CpuFlushCache.asm | INTEL
|
ia32/CpuFlushCache.asm | INTEL
|
||||||
|
ia32/CpuFlushCache.S | GCC
|
||||||
|
|
||||||
[sources.x64]
|
[sources.x64]
|
||||||
x64/RuntimeLib.c
|
x64/RuntimeLib.c
|
||||||
@ -48,6 +49,7 @@ COMPONENT_TYPE = LIBRARY
|
|||||||
x64/Fvb.c
|
x64/Fvb.c
|
||||||
x64/RuntimeLibAsm.asm | MSFT
|
x64/RuntimeLibAsm.asm | MSFT
|
||||||
x64/RuntimeLibAsm.asm | INTEL
|
x64/RuntimeLibAsm.asm | INTEL
|
||||||
|
x64/RuntimeLibAsm.S | GCC
|
||||||
|
|
||||||
[sources.ipf]
|
[sources.ipf]
|
||||||
Ipf/RuntimeLib.c
|
Ipf/RuntimeLib.c
|
||||||
|
@ -19,12 +19,14 @@
|
|||||||
#
|
#
|
||||||
#--*/
|
#--*/
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
#include <EfiBind.h>
|
||||||
|
|
||||||
.586p:
|
.586p:
|
||||||
#.MODEL flat,C
|
#.MODEL flat,C
|
||||||
.code:
|
.code:
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
.globl ASM_PFX(EfiCpuFlushCache)
|
.global ASM_PFX(EfiCpuFlushCache)
|
||||||
|
|
||||||
#
|
#
|
||||||
#//
|
#//
|
||||||
@ -57,6 +59,3 @@ ASM_PFX(EfiCpuFlushCache):
|
|||||||
wbinvd
|
wbinvd
|
||||||
xorl %eax, %eax
|
xorl %eax, %eax
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ Key:
|
|||||||
UINTN mFvbCount;
|
UINTN mFvbCount;
|
||||||
VOID *mFvbRegistration;
|
VOID *mFvbRegistration;
|
||||||
VOID *mFvbExtRegistration;
|
VOID *mFvbExtRegistration;
|
||||||
static EFI_EVENT mEfiFvbVirtualNotifyEvent;
|
//static EFI_EVENT mEfiFvbVirtualNotifyEvent;
|
||||||
BOOLEAN gEfiFvbInitialized = FALSE;
|
BOOLEAN gEfiFvbInitialized = FALSE;
|
||||||
EFI_EVENT mFvbEvent;
|
EFI_EVENT mFvbEvent;
|
||||||
|
|
||||||
|
@ -0,0 +1,37 @@
|
|||||||
|
#------------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# Copyright (c) 2008, Intel Corporation
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
# Module Name:
|
||||||
|
#
|
||||||
|
# RuntimeLibAsm.S
|
||||||
|
#
|
||||||
|
# Abstract:
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
#include <EfiBind.h>
|
||||||
|
|
||||||
|
.text
|
||||||
|
|
||||||
|
.global ASM_PFX(EfiCpuFlushCache)
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
#EFI_STATUS
|
||||||
|
#EfiCpuFlushCache (
|
||||||
|
# IN EFI_PHYSICAL_ADDRESS Start,
|
||||||
|
# IN UINT64 Length
|
||||||
|
# );
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
ASM_PFX(EfiCpuFlushCache):
|
||||||
|
wbinvd
|
||||||
|
mov $0, %rax
|
||||||
|
ret
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user