summaryrefslogtreecommitdiffstats
path: root/drivers/lguest
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/lguest')
-rw-r--r--drivers/lguest/x86/core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/lguest/x86/core.c b/drivers/lguest/x86/core.c
index d71f6323ac00..b4f79b923aea 100644
--- a/drivers/lguest/x86/core.c
+++ b/drivers/lguest/x86/core.c
@@ -504,7 +504,7 @@ void __init lguest_arch_host_init(void)
504 * byte, not the size, hence the "-1"). 504 * byte, not the size, hence the "-1").
505 */ 505 */
506 state->host_gdt_desc.size = GDT_SIZE-1; 506 state->host_gdt_desc.size = GDT_SIZE-1;
507 state->host_gdt_desc.address = (long)get_cpu_gdt_table(i); 507 state->host_gdt_desc.address = (long)get_cpu_gdt_rw(i);
508 508
509 /* 509 /*
510 * All CPUs on the Host use the same Interrupt Descriptor 510 * All CPUs on the Host use the same Interrupt Descriptor
@@ -554,8 +554,8 @@ void __init lguest_arch_host_init(void)
554 * The Host needs to be able to use the LGUEST segments on this 554 * The Host needs to be able to use the LGUEST segments on this
555 * CPU, too, so put them in the Host GDT. 555 * CPU, too, so put them in the Host GDT.
556 */ 556 */
557 get_cpu_gdt_table(i)[GDT_ENTRY_LGUEST_CS] = FULL_EXEC_SEGMENT; 557 get_cpu_gdt_rw(i)[GDT_ENTRY_LGUEST_CS] = FULL_EXEC_SEGMENT;
558 get_cpu_gdt_table(i)[GDT_ENTRY_LGUEST_DS] = FULL_SEGMENT; 558 get_cpu_gdt_rw(i)[GDT_ENTRY_LGUEST_DS] = FULL_SEGMENT;
559 } 559 }
560 560
561 /* 561 /*