mirror of https://github.com/acidanthera/audk.git
OvmfPkg: RiscVVirt: Remove satp bare mode setting
There is no point to set satp to bare mode as that should be the default mode when booting edk2. Signed-off-by: Tuan Phan <tphan@ventanamicro.com> Reviewed-by: Andrei Warkentin <andrei.warkentin@intel.com> Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
This commit is contained in:
parent
33d0a3cc92
commit
cc13dcc576
|
@ -85,21 +85,6 @@ AddMemoryRangeHob (
|
|||
AddMemoryBaseSizeHob (MemoryBase, (UINT64)(MemoryLimit - MemoryBase));
|
||||
}
|
||||
|
||||
/**
|
||||
Configure MMU
|
||||
**/
|
||||
STATIC
|
||||
VOID
|
||||
InitMmu (
|
||||
)
|
||||
{
|
||||
//
|
||||
// Set supervisor translation mode to Bare mode
|
||||
//
|
||||
RiscVSetSupervisorAddressTranslationRegister ((UINT64)SATP_MODE_OFF << 60);
|
||||
DEBUG ((DEBUG_INFO, "%a: Set Supervisor address mode to bare-metal mode.\n", __func__));
|
||||
}
|
||||
|
||||
/**
|
||||
Publish system RAM and reserve memory regions.
|
||||
|
||||
|
@ -327,7 +312,8 @@ MemoryPeimInitialization (
|
|||
|
||||
AddReservedMemoryMap (FdtPointer);
|
||||
|
||||
InitMmu ();
|
||||
/* Make sure SEC is booting with bare mode */
|
||||
ASSERT ((RiscVGetSupervisorAddressTranslationRegister () & SATP64_MODE) == (SATP_MODE_OFF << SATP64_MODE_SHIFT));
|
||||
|
||||
BuildMemoryTypeInformationHob ();
|
||||
|
||||
|
|
Loading…
Reference in New Issue