mirror of https://github.com/acidanthera/audk.git
ArmPkg/PL390Gic: Added support for ArmGicDisableInterruptInterface()
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13489 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d69503998a
commit
9736c29721
|
@ -107,6 +107,19 @@ ArmGicEnableInterruptInterface (
|
||||||
ARM_GIC_ICCICR_SIGNAL_SECURE_TO_FIQ);
|
ARM_GIC_ICCICR_SIGNAL_SECURE_TO_FIQ);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VOID
|
||||||
|
EFIAPI
|
||||||
|
ArmGicDisableInterruptInterface (
|
||||||
|
IN INTN GicInterruptInterfaceBase
|
||||||
|
)
|
||||||
|
{
|
||||||
|
UINT32 ControlValue;
|
||||||
|
|
||||||
|
// Disable CPU interface in Secure world and Non-secure World
|
||||||
|
ControlValue = MmioRead32 (GicInterruptInterfaceBase + ARM_GIC_ICCICR);
|
||||||
|
MmioWrite32 (GicInterruptInterfaceBase + ARM_GIC_ICCICR, ControlValue & ~(ARM_GIC_ICCICR_ENABLE_SECURE | ARM_GIC_ICCICR_ENABLE_NS));
|
||||||
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ArmGicEnableDistributor (
|
ArmGicEnableDistributor (
|
||||||
|
|
|
@ -96,6 +96,12 @@ ArmGicEnableInterruptInterface (
|
||||||
IN INTN GicInterruptInterfaceBase
|
IN INTN GicInterruptInterfaceBase
|
||||||
);
|
);
|
||||||
|
|
||||||
|
VOID
|
||||||
|
EFIAPI
|
||||||
|
ArmGicDisableInterruptInterface (
|
||||||
|
IN INTN GicInterruptInterfaceBase
|
||||||
|
);
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
ArmGicEnableDistributor (
|
ArmGicEnableDistributor (
|
||||||
|
|
Loading…
Reference in New Issue