mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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 <andrew.cooper3@citrix.com> Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
87e7b4d5b0
commit
08baf55f33
1 file changed
+1
-1
+1
-1
@@ -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),
|
||||
};
|
||||
|
||||