From 6ba74ba51c14e84609239758cb01f674ffa335e8 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Thu, 12 Jul 2012 12:21:09 +0100 Subject: [PATCH] Fixed compilation of the boot loader on GCC 2. Not sure why but GCC 2 seems to be ignoring the extern "C" in smp.h when compiling smp_boot_other_cpus() resulting in undefined references. Fixed by putting extern "C" on the definition too. --- src/system/boot/platform/bios_ia32/smp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/boot/platform/bios_ia32/smp.cpp b/src/system/boot/platform/bios_ia32/smp.cpp index 0c6c5f7720..ef9545344c 100644 --- a/src/system/boot/platform/bios_ia32/smp.cpp +++ b/src/system/boot/platform/bios_ia32/smp.cpp @@ -420,7 +420,7 @@ smp_init_other_cpus(void) } -void +extern "C" void smp_boot_other_cpus(void (*entryFunc)()) { if (gKernelArgs.num_cpus < 2)