Skip to content

Commit

Permalink
core/init: move imc catalog preload init after the STB init.
Browse files Browse the repository at this point in the history
As a safer side move the imc catalog preload after the STB init
to make sure the imc catalog resource get's verified and measured
properly during loading when both secure and trusted boot modes
are on.

Signed-off-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
pridhiviraj authored and stewartsmith committed Feb 9, 2018
1 parent b772e11 commit e15174a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/init.c
Expand Up @@ -997,16 +997,16 @@ void __noreturn __nomcount main_cpu_entry(const void *fdt)
/* Read in NVRAM and set it up */
nvram_init();

/* preload the IMC catalog dtb */
imc_catalog_preload();

/* Set the console level */
console_log_level();

/* Secure/Trusted Boot init. We look for /ibm,secureboot in DT */
secureboot_init();
trustedboot_init();

/* preload the IMC catalog dtb */
imc_catalog_preload();

/* Install the OPAL Console handlers */
init_opal_console();

Expand Down

0 comments on commit e15174a

Please sign in to comment.