|
@@ -1,6 +1,7 @@
|
|
#include <linux/io.h>
|
|
#include <linux/io.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/memblock.h>
|
|
#include <linux/memblock.h>
|
|
|
|
+#include <linux/mem_encrypt.h>
|
|
|
|
|
|
#include <asm/set_memory.h>
|
|
#include <asm/set_memory.h>
|
|
#include <asm/pgtable.h>
|
|
#include <asm/pgtable.h>
|
|
@@ -59,6 +60,13 @@ static void __init setup_real_mode(void)
|
|
|
|
|
|
base = (unsigned char *)real_mode_header;
|
|
base = (unsigned char *)real_mode_header;
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * If SME is active, the trampoline area will need to be in
|
|
|
|
+ * decrypted memory in order to bring up other processors
|
|
|
|
+ * successfully.
|
|
|
|
+ */
|
|
|
|
+ set_memory_decrypted((unsigned long)base, size >> PAGE_SHIFT);
|
|
|
|
+
|
|
memcpy(base, real_mode_blob, size);
|
|
memcpy(base, real_mode_blob, size);
|
|
|
|
|
|
phys_base = __pa(base);
|
|
phys_base = __pa(base);
|