summaryrefslogtreecommitdiffstats
path: root/src/bootloader/bootloader.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootloader/bootloader.C')
-rw-r--r--src/bootloader/bootloader.C12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/bootloader/bootloader.C b/src/bootloader/bootloader.C
index a2cf3fe84..2b9217c98 100644
--- a/src/bootloader/bootloader.C
+++ b/src/bootloader/bootloader.C
@@ -35,6 +35,8 @@
#include <lpc_const.H>
#include <pnor_utils.H>
#include <arch/memorymap.H>
+#include <arch/pvrformat.H>
+
#include <ecc.H>
@@ -530,8 +532,16 @@ namespace Bootloader{
writeScratchReg(MMIO_SCRATCH_HOSTBOOT_ACTIVE,
hostboot_string);
+ //Determine if P9N or P9C and apply URMOR hack
+ uint64_t l_urmor_hack_required = 0x0;
+ PVR_t l_pvr(getPVR());
+ if((l_pvr.chipFamily == PVR_t::P9_ALL))
+ {
+ l_urmor_hack_required = 1;
+ }
+
// Start executing HBB
- enterHBB(HBB_HRMOR, HBB_RUNNING_OFFSET);
+ enterHBB(HBB_HRMOR, HBB_RUNNING_OFFSET, l_urmor_hack_required);
}
else
{
OpenPOWER on IntegriCloud