mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 23:54:02 +02:00
Ring3: Fixed ArmPkg and ArmVirtPkg compilation.
This commit is contained in:
parent
cd64c7e0a6
commit
7f308c22c5
@ -29,6 +29,6 @@ ArmCrashDumpDxeInitialize (
|
|||||||
return mCpu->RegisterInterruptHandler (
|
return mCpu->RegisterInterruptHandler (
|
||||||
mCpu,
|
mCpu,
|
||||||
EXCEPT_AARCH64_SYNCHRONOUS_EXCEPTIONS,
|
EXCEPT_AARCH64_SYNCHRONOUS_EXCEPTIONS,
|
||||||
&DefaultExceptionHandler
|
(EFI_CPU_INTERRUPT_HANDLER)&DefaultExceptionHandler
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -398,4 +398,14 @@ ASM_FUNC(ArmReadIdAA64Pfr1)
|
|||||||
mrs x0, ID_AA64PFR1_EL1
|
mrs x0, ID_AA64PFR1_EL1
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
.cpu cortex-a76
|
||||||
|
|
||||||
|
ASM_FUNC(ArmSetPan)
|
||||||
|
msr pan, #1
|
||||||
|
ret
|
||||||
|
|
||||||
|
ASM_FUNC(ArmClearPan)
|
||||||
|
msr pan, #0
|
||||||
|
ret
|
||||||
|
|
||||||
ASM_FUNCTION_REMOVE_IF_UNREFERENCED
|
ASM_FUNCTION_REMOVE_IF_UNREFERENCED
|
||||||
|
@ -150,4 +150,14 @@ ASM_FUNC (ArmGetPhysicalAddressBits)
|
|||||||
movge r0, #40 // 40 bits if LPAE
|
movge r0, #40 // 40 bits if LPAE
|
||||||
bx lr
|
bx lr
|
||||||
|
|
||||||
|
.arch armv8.1-a
|
||||||
|
|
||||||
|
ASM_FUNC(ArmSetPan)
|
||||||
|
setpan #1
|
||||||
|
bx LR
|
||||||
|
|
||||||
|
ASM_FUNC(ArmClearPan)
|
||||||
|
setpan #0
|
||||||
|
bx LR
|
||||||
|
|
||||||
ASM_FUNCTION_REMOVE_IF_UNREFERENCED
|
ASM_FUNCTION_REMOVE_IF_UNREFERENCED
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
#include <Chipset/AArch64.h>
|
#include <Chipset/AArch64.h>
|
||||||
|
|
||||||
#include <Uefi.h>
|
#include <Uefi.h>
|
||||||
|
#include <Library/ArmLib.h>
|
||||||
#include <Library/UefiLib.h>
|
#include <Library/UefiLib.h>
|
||||||
#include <Library/BaseLib.h>
|
#include <Library/BaseLib.h>
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
@ -46,12 +47,6 @@ GetImageName (
|
|||||||
OUT UINTN *DebugBase
|
OUT UINTN *DebugBase
|
||||||
);
|
);
|
||||||
|
|
||||||
VOID
|
|
||||||
EFIAPI
|
|
||||||
ArmClearPan (
|
|
||||||
VOID
|
|
||||||
);
|
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
VOID
|
VOID
|
||||||
DescribeInstructionOrDataAbort (
|
DescribeInstructionOrDataAbort (
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
DebugLib
|
DebugLib
|
||||||
SerialPortLib
|
SerialPortLib
|
||||||
UefiBootServicesTableLib
|
UefiBootServicesTableLib
|
||||||
|
ArmLib
|
||||||
|
|
||||||
[Guids]
|
[Guids]
|
||||||
gEfiDebugImageInfoTableGuid
|
gEfiDebugImageInfoTableGuid
|
||||||
|
@ -145,25 +145,3 @@ ASM_FUNC(ReturnToCore)
|
|||||||
msr daifclr, #0xf
|
msr daifclr, #0xf
|
||||||
isb
|
isb
|
||||||
ret
|
ret
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
// VOID
|
|
||||||
// EFIAPI
|
|
||||||
// ArmSetPan (
|
|
||||||
// VOID
|
|
||||||
// );
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
ASM_FUNC(ArmSetPan)
|
|
||||||
msr pan, #1
|
|
||||||
ret
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
// VOID
|
|
||||||
// EFIAPI
|
|
||||||
// ArmClearPan (
|
|
||||||
// VOID
|
|
||||||
// );
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
ASM_FUNC(ArmClearPan)
|
|
||||||
msr pan, #0
|
|
||||||
ret
|
|
||||||
|
@ -32,18 +32,6 @@ ReturnToCore (
|
|||||||
IN UINTN CoreSp
|
IN UINTN CoreSp
|
||||||
);
|
);
|
||||||
|
|
||||||
VOID
|
|
||||||
EFIAPI
|
|
||||||
ArmSetPan (
|
|
||||||
VOID
|
|
||||||
);
|
|
||||||
|
|
||||||
VOID
|
|
||||||
EFIAPI
|
|
||||||
ArmClearPan (
|
|
||||||
VOID
|
|
||||||
);
|
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -7,8 +7,6 @@
|
|||||||
|
|
||||||
#include <AsmMacroIoLib.h>
|
#include <AsmMacroIoLib.h>
|
||||||
|
|
||||||
.arch armv8.1a
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// EFI_STATUS
|
// EFI_STATUS
|
||||||
// EFIAPI
|
// EFIAPI
|
||||||
@ -124,25 +122,3 @@ ASM_FUNC(ReturnToCore)
|
|||||||
isb
|
isb
|
||||||
|
|
||||||
bx LR
|
bx LR
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
// VOID
|
|
||||||
// EFIAPI
|
|
||||||
// ArmSetPan (
|
|
||||||
// VOID
|
|
||||||
// );
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
ASM_FUNC(ArmSetPan)
|
|
||||||
setpan #1
|
|
||||||
bx LR
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
// VOID
|
|
||||||
// EFIAPI
|
|
||||||
// ArmClearPan (
|
|
||||||
// VOID
|
|
||||||
// );
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
ASM_FUNC(ArmClearPan)
|
|
||||||
setpan #0
|
|
||||||
bx LR
|
|
||||||
|
@ -29,18 +29,6 @@ ReturnToCore (
|
|||||||
IN UINTN CoreSp
|
IN UINTN CoreSp
|
||||||
);
|
);
|
||||||
|
|
||||||
VOID
|
|
||||||
EFIAPI
|
|
||||||
ArmSetPan (
|
|
||||||
VOID
|
|
||||||
);
|
|
||||||
|
|
||||||
VOID
|
|
||||||
EFIAPI
|
|
||||||
ArmClearPan (
|
|
||||||
VOID
|
|
||||||
);
|
|
||||||
|
|
||||||
STATIC
|
STATIC
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -710,17 +710,29 @@ ArmHasCcidx (
|
|||||||
VOID
|
VOID
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Checks whether the CPU implements the Privileged Access Never.
|
Checks whether the CPU implements the Privileged Access Never.
|
||||||
|
|
||||||
@retval TRUE FEAT_PAN is implemented.
|
@retval TRUE FEAT_PAN is implemented.
|
||||||
@retval FALSE FEAT_PAN is not mplemented.
|
@retval FALSE FEAT_PAN is not mplemented.
|
||||||
**/
|
**/
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ArmHasPan (
|
ArmHasPan (
|
||||||
VOID
|
VOID
|
||||||
);
|
);
|
||||||
|
|
||||||
|
VOID
|
||||||
|
EFIAPI
|
||||||
|
ArmSetPan (
|
||||||
|
VOID
|
||||||
|
);
|
||||||
|
|
||||||
|
VOID
|
||||||
|
EFIAPI
|
||||||
|
ArmClearPan (
|
||||||
|
VOID
|
||||||
|
);
|
||||||
|
|
||||||
#ifdef MDE_CPU_AARCH64
|
#ifdef MDE_CPU_AARCH64
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user