]> err.no Git - linux-2.6/commit
x86: change init_gdt to update the gdt via write_gdt, rather than a direct write.
authorAlex Nixon <alex.nixon@citrix.com>
Fri, 15 Aug 2008 16:21:14 +0000 (17:21 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 15 Aug 2008 17:16:05 +0000 (19:16 +0200)
commitfc0091b3c86396afc8e6c273aff21671cf882ee1
tree0f9353c2211972a5123edc1844e5d665e690cbb7
parent529d0e402eee62b7bfc89ec5b763a9a875bb49fb
x86: change init_gdt to update the gdt via write_gdt, rather than a direct write.

By writing directly, a memory access violation can occur whilst
hotplugging a CPU if the entry was previously marked read-only.

Signed-off-by: Alex Nixon <alex.nixon@citrix.com>
Cc: Jeremy Fitzhardinge <Jeremy.Fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/smpcommon.c