VOID
ArmCpuSetup (
  IN  UINTN         MpId
  )
{
  // Enable SWP instructions
  ArmEnableSWPInstruction ();

  // Enable program flow prediction, if supported.
  ArmEnableBranchPrediction ();

  // If MPCore then Enable the SCU
  if (ArmIsMpCore()) {
    // Turn on SMP coherency
    ArmSetAuxCrBit (A5_FEATURE_SMP);
  }

}
示例#2
0
VOID
ArmCpuSetup (
  IN  UINTN         MpId
  )
{
  // Enable SWP instructions
  ArmEnableSWPInstruction ();

  // Enable program flow prediction, if supported.
  ArmEnableBranchPrediction ();

  // If MPCore then Enable the SCU
  if (ArmIsMpCore()) {
    // Signals the Cortex-A9 processor is taking part in coherency
    ArmSetAuxCrBit (A9_FEATURE_SMP);

    ArmEnableScu ();
  }
}