diff options
author | Claudio Carvalho <cclaudio@linux.vnet.ibm.com> | 2017-12-09 02:52:33 -0200 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-12-18 21:30:57 -0600 |
commit | 68a25577cd896466eee563315ba8bf47a0438ede (patch) | |
tree | ef774c33466cf0d459861d669e19d48e8244b78a /core | |
parent | 63110a7734e6f22ae7c7cc06576c766ca7a7606a (diff) | |
download | skiboot-68a25577cd896466eee563315ba8bf47a0438ede.zip skiboot-68a25577cd896466eee563315ba8bf47a0438ede.tar.gz skiboot-68a25577cd896466eee563315ba8bf47a0438ede.tar.bz2 |
libstb/cvc: update memory-region to point to /reserved-memory
The linux documentation, reserved-memory.txt, says that memory-region is
a phandle that pairs to a children of /reserved-memory.
This updates /ibm,secureboot/ibm,cvc/memory-region to point to
/reserved-memory/secure-crypt-algo-code instead of
/ibm,hostboot/reserved-memory/secure-crypt-algo-code.
Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/init.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/init.c b/core/init.c index 06d5190..0405f5c 100644 --- a/core/init.c +++ b/core/init.c @@ -1062,6 +1062,13 @@ void __noreturn __nomcount main_cpu_entry(const void *fdt) /* ... and add remaining reservations to the DT */ mem_region_add_dt_reserved(); + /* + * Update /ibm,secureboot/ibm,cvc/memory-region to point to + * /reserved-memory/secure-crypt-algo-code instead of + * /ibm,hostboot/reserved-memory/secure-crypt-algo-code. + */ + cvc_update_reserved_memory_phandle(); + prd_register_reserved_memory(); /* On P9, switch to radix mode by default */ |