mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 01:40:30 +00:00
2b932f6cf0
Recent GDT changes broke the SMP boot sequence if the booting CPU is numbered anything other than zero. There's also a subtle source of error in that the boot time CPU now uses cpu_gdt_table (which is actually the GDT for booting CPUs in head.S). This patch fixes both problems by making GDT descriptors themselves allocated from a per_cpu area and switching to them in cpu_init(), which now means that cpu_gdt_table is exclusively used for booting CPUs again. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> Cc: Zachary Amsden <zach@vmware.com> Cc: Matt Tolentino <metolent@snoqualmie.dp.intel.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
33 lines
812 B
C
33 lines
812 B
C
#include <linux/config.h>
|
|
#include <linux/module.h>
|
|
#include <asm/checksum.h>
|
|
#include <asm/desc.h>
|
|
|
|
EXPORT_SYMBOL(__down_failed);
|
|
EXPORT_SYMBOL(__down_failed_interruptible);
|
|
EXPORT_SYMBOL(__down_failed_trylock);
|
|
EXPORT_SYMBOL(__up_wakeup);
|
|
/* Networking helper routines. */
|
|
EXPORT_SYMBOL(csum_partial_copy_generic);
|
|
|
|
EXPORT_SYMBOL(__get_user_1);
|
|
EXPORT_SYMBOL(__get_user_2);
|
|
EXPORT_SYMBOL(__get_user_4);
|
|
|
|
EXPORT_SYMBOL(__put_user_1);
|
|
EXPORT_SYMBOL(__put_user_2);
|
|
EXPORT_SYMBOL(__put_user_4);
|
|
EXPORT_SYMBOL(__put_user_8);
|
|
|
|
EXPORT_SYMBOL(strpbrk);
|
|
EXPORT_SYMBOL(strstr);
|
|
|
|
#ifdef CONFIG_SMP
|
|
extern void FASTCALL( __write_lock_failed(rwlock_t *rw));
|
|
extern void FASTCALL( __read_lock_failed(rwlock_t *rw));
|
|
EXPORT_SYMBOL(__write_lock_failed);
|
|
EXPORT_SYMBOL(__read_lock_failed);
|
|
#endif
|
|
|
|
EXPORT_SYMBOL(csum_partial);
|