예제 #1
0
파일: CustomLoader.c 프로젝트: joyxu/uefi
EFI_STATUS
PreparePlatformHardware (
  VOID
  )
{
    //Note: Interrupts will be disabled by the GIC driver when ExitBootServices() will be called.

    // Clean before Disable else the Stack gets corrupted with old data.
    ArmCleanDataCache ();

    LlcCleanInvalidate ();

    ArmDisableDataCache ();
    
    // Invalidate all the entries that might have snuck in.
    ArmInvalidateDataCache ();

    // Disable and invalidate the instruction cache
    ArmDisableInstructionCache ();
    ArmInvalidateInstructionCache ();

    // Turn off MMU
    ArmDisableMmu();

    return EFI_SUCCESS;
}
예제 #2
0
VOID
EFIAPI
WriteBackDataCache (
  VOID
  )
{
  ArmCleanDataCache();
}
예제 #3
0
VOID
EFIAPI
InvalidateInstructionCache (
  VOID
  )
{
  ArmCleanDataCache();
  ArmInvalidateInstructionCache();
}