aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/processor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/processor.h')
-rw-r--r--include/asm-x86/processor.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h
index e8dd394c9f46..36ee9881b74f 100644
--- a/include/asm-x86/processor.h
+++ b/include/asm-x86/processor.h
@@ -3,6 +3,9 @@
3 3
4#include <asm/processor-flags.h> 4#include <asm/processor-flags.h>
5 5
6#include <asm/page.h>
7#include <asm/system.h>
8
6static inline void native_cpuid(unsigned int *eax, unsigned int *ebx, 9static inline void native_cpuid(unsigned int *eax, unsigned int *ebx,
7 unsigned int *ecx, unsigned int *edx) 10 unsigned int *ecx, unsigned int *edx)
8{ 11{
@@ -15,6 +18,10 @@ static inline void native_cpuid(unsigned int *eax, unsigned int *ebx,
15 : "0" (*eax), "2" (*ecx)); 18 : "0" (*eax), "2" (*ecx));
16} 19}
17 20
21static inline void load_cr3(pgd_t *pgdir)
22{
23 write_cr3(__pa(pgdir));
24}
18 25
19#ifdef CONFIG_X86_32 26#ifdef CONFIG_X86_32
20# include "processor_32.h" 27# include "processor_32.h"