x86/desc: Move boot_gdtr into .rodata
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 12 Aug 2019 14:16:38 +0000 (15:16 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 28 Aug 2019 17:49:07 +0000 (18:49 +0100)
It is never written to.

This was an oversight when it was moved from asm into C.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/desc.c

index 42ccdc2f8c01925e02c71d205a1d11520f3a58d5..dfeb1beaa876082a9d189fc34b075cf9c037835f 100644 (file)
@@ -89,7 +89,7 @@ seg_desc_t boot_compat_gdt[PAGE_SIZE / sizeof(seg_desc_t)] =
  * References boot_cpu_gdt_table for a short period, until the CPUs switch
  * onto their per-CPU GDTs.
  */
-struct desc_ptr boot_gdtr = {
+const struct desc_ptr boot_gdtr = {
     .limit = LAST_RESERVED_GDT_BYTE,
     .base = (unsigned long)(boot_gdt - FIRST_RESERVED_GDT_ENTRY),
 };