Fix GDT allocation for SMP guests.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-08-26 11:00:14 +00:00
1 parent eec8a20f38
commit f67a7f7902
2 files changed
+2 -2

No files matched your search

@@ -853,7 +853,7 @@ static int __init do_boot_cpu(int apicid)
atomic_set(&init_deasserted, 0);
#if 1
cpu_gdt_descr[cpu].address = __get_free_page(GFP_KERNEL);
cpu_gdt_descr[cpu].address = __get_free_page(GFP_KERNEL|__GFP_ZERO);
BUG_ON(cpu_gdt_descr[0].size > PAGE_SIZE);
cpu_gdt_descr[cpu].size = cpu_gdt_descr[0].size;
printk("GDT: copying %d bytes from %lx to %lx\n",
@@ -739,7 +739,7 @@ static int __cpuinit do_boot_cpu(int cpu, int apicid)
atomic_set(&init_deasserted, 0);
#ifdef CONFIG_XEN
cpu_gdt_descr[cpu].address = __get_free_page(GFP_KERNEL);
cpu_gdt_descr[cpu].address = __get_free_page(GFP_KERNEL|__GFP_ZERO);
BUG_ON(cpu_gdt_descr[0].size > PAGE_SIZE);
cpu_gdt_descr[cpu].size = cpu_gdt_descr[0].size;
memcpy((void *)cpu_gdt_descr[cpu].address,
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.