diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-30 07:31:27 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:31:27 -0500 |
commit | c72dcf83ff8585c95739abffa3be7c87ca63d66b (patch) | |
tree | 7bf10bb9f3f25d3ad4cb7d4772bbc66b122500de /include/asm-x86/mmu_context_64.h | |
parent | 746ff60f2627626fca0d8ddbf6b1f04d505782f4 (diff) |
x86: move load_cr3 to a common place.
There are currently two definitions of load_cr3, that essentially do the
same thing. This patch moves them all to processor.h.
Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/mmu_context_64.h')
-rw-r--r-- | include/asm-x86/mmu_context_64.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/asm-x86/mmu_context_64.h b/include/asm-x86/mmu_context_64.h index 98bfe43dd806..7e2aa23fccbf 100644 --- a/include/asm-x86/mmu_context_64.h +++ b/include/asm-x86/mmu_context_64.h | |||
@@ -23,11 +23,6 @@ static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) | |||
23 | #endif | 23 | #endif |
24 | } | 24 | } |
25 | 25 | ||
26 | static inline void load_cr3(pgd_t *pgd) | ||
27 | { | ||
28 | asm volatile("movq %0,%%cr3" :: "r" (__pa(pgd)) : "memory"); | ||
29 | } | ||
30 | |||
31 | static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, | 26 | static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, |
32 | struct task_struct *tsk) | 27 | struct task_struct *tsk) |
33 | { | 28 | { |