diff options
Diffstat (limited to 'arch/x86/kernel/asm-offsets_32.c')
-rw-r--r-- | arch/x86/kernel/asm-offsets_32.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/kernel/asm-offsets_32.c b/arch/x86/kernel/asm-offsets_32.c index afd84463b712..a33d53017997 100644 --- a/arch/x86/kernel/asm-offsets_32.c +++ b/arch/x86/kernel/asm-offsets_32.c | |||
@@ -20,10 +20,8 @@ | |||
20 | 20 | ||
21 | #include <xen/interface/xen.h> | 21 | #include <xen/interface/xen.h> |
22 | 22 | ||
23 | #ifdef CONFIG_LGUEST_GUEST | ||
24 | #include <linux/lguest.h> | 23 | #include <linux/lguest.h> |
25 | #include "../../../drivers/lguest/lg.h" | 24 | #include "../../../drivers/lguest/lg.h" |
26 | #endif | ||
27 | 25 | ||
28 | #define DEFINE(sym, val) \ | 26 | #define DEFINE(sym, val) \ |
29 | asm volatile("\n->" #sym " %0 " #val : : "i" (val)) | 27 | asm volatile("\n->" #sym " %0 " #val : : "i" (val)) |
@@ -134,6 +132,10 @@ void foo(void) | |||
134 | BLANK(); | 132 | BLANK(); |
135 | OFFSET(LGUEST_DATA_irq_enabled, lguest_data, irq_enabled); | 133 | OFFSET(LGUEST_DATA_irq_enabled, lguest_data, irq_enabled); |
136 | OFFSET(LGUEST_DATA_pgdir, lguest_data, pgdir); | 134 | OFFSET(LGUEST_DATA_pgdir, lguest_data, pgdir); |
135 | #endif | ||
136 | |||
137 | #ifdef CONFIG_LGUEST | ||
138 | BLANK(); | ||
137 | OFFSET(LGUEST_PAGES_host_gdt_desc, lguest_pages, state.host_gdt_desc); | 139 | OFFSET(LGUEST_PAGES_host_gdt_desc, lguest_pages, state.host_gdt_desc); |
138 | OFFSET(LGUEST_PAGES_host_idt_desc, lguest_pages, state.host_idt_desc); | 140 | OFFSET(LGUEST_PAGES_host_idt_desc, lguest_pages, state.host_idt_desc); |
139 | OFFSET(LGUEST_PAGES_host_cr3, lguest_pages, state.host_cr3); | 141 | OFFSET(LGUEST_PAGES_host_cr3, lguest_pages, state.host_cr3); |