aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest/x86/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/lguest/x86/core.c')
-rw-r--r--drivers/lguest/x86/core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/lguest/x86/core.c b/drivers/lguest/x86/core.c
index 922a1acbf652..6adfd7ba4c97 100644
--- a/drivers/lguest/x86/core.c
+++ b/drivers/lguest/x86/core.c
@@ -47,6 +47,7 @@
47#include <asm/lguest.h> 47#include <asm/lguest.h>
48#include <asm/uaccess.h> 48#include <asm/uaccess.h>
49#include <asm/i387.h> 49#include <asm/i387.h>
50#include <asm/tlbflush.h>
50#include "../lg.h" 51#include "../lg.h"
51 52
52static int cpu_had_pge; 53static int cpu_had_pge;
@@ -452,9 +453,9 @@ void lguest_arch_handle_trap(struct lg_cpu *cpu)
452static void adjust_pge(void *on) 453static void adjust_pge(void *on)
453{ 454{
454 if (on) 455 if (on)
455 write_cr4(read_cr4() | X86_CR4_PGE); 456 cr4_set_bits(X86_CR4_PGE);
456 else 457 else
457 write_cr4(read_cr4() & ~X86_CR4_PGE); 458 cr4_clear_bits(X86_CR4_PGE);
458} 459}
459 460
460/*H:020 461/*H:020