]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
x86/traps: Put idt_table[] back into .bss
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 9 Mar 2018 15:01:21 +0000 (15:01 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 9 Mar 2018 15:42:24 +0000 (15:42 +0000)
c/s d1d6fc97d "x86/xpti: really hide almost all of Xen image" accidentially
moved idt_table[] from .bss to .data by virtue of using the page_aligned
section.  We also have .bss.page_aligned, so use that.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/traps.c

index 19bc1747d5f56d9bddf906cf77e4a37692ae25ba..016af12bfce7ed7dce68da0d74e4ac8ce1622490 100644 (file)
@@ -102,7 +102,7 @@ DEFINE_PER_CPU_READ_MOSTLY(struct desc_struct *, gdt_table);
 DEFINE_PER_CPU_READ_MOSTLY(struct desc_struct *, compat_gdt_table);
 
 /* Master table, used by CPU0. */
-idt_entry_t __section(".data.page_aligned") __aligned(PAGE_SIZE)
+idt_entry_t __section(".bss.page_aligned") __aligned(PAGE_SIZE)
     idt_table[IDT_ENTRIES];
 
 /* Pointer to the IDT of every CPU. */