From: Andrew Cooper Date: Mon, 12 Aug 2019 14:16:38 +0000 (+0100) Subject: x86/desc: Move boot_gdtr into .rodata X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~1695 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=08baf55f339756d412c922abdf69e1a81db09668;p=xen.git x86/desc: Move boot_gdtr into .rodata It is never written to. This was an oversight when it was moved from asm into C. Signed-off-by: Andrew Cooper Acked-by: Jan Beulich --- diff --git a/xen/arch/x86/desc.c b/xen/arch/x86/desc.c index 42ccdc2f8c..dfeb1beaa8 100644 --- a/xen/arch/x86/desc.c +++ b/xen/arch/x86/desc.c @@ -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), };