aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/processor.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/processor.h')
-rw-r--r--arch/x86/include/asm/processor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
index 6a79547e8ee0..a68f70c3debc 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -29,6 +29,7 @@ struct vm86;
29#include <linux/math64.h> 29#include <linux/math64.h>
30#include <linux/err.h> 30#include <linux/err.h>
31#include <linux/irqflags.h> 31#include <linux/irqflags.h>
32#include <linux/mem_encrypt.h>
32 33
33/* 34/*
34 * We handle most unaligned accesses in hardware. On the other hand 35 * We handle most unaligned accesses in hardware. On the other hand
@@ -241,7 +242,7 @@ static inline unsigned long read_cr3_pa(void)
241 242
242static inline void load_cr3(pgd_t *pgdir) 243static inline void load_cr3(pgd_t *pgdir)
243{ 244{
244 write_cr3(__pa(pgdir)); 245 write_cr3(__sme_pa(pgdir));
245} 246}
246 247
247#ifdef CONFIG_X86_32 248#ifdef CONFIG_X86_32