From: | "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx> |
Date: | Fri, 23 Feb 2007 01:37:44 +0100 |
On Thu, Feb 22, 2007 at 11:49:32PM +0100, Gergo Szakal wrote:(did not want to pollute the commits list) Does the last commit by corecode make it possivle to build/install an SMP and a non-SMP kernel together?
You've been able to *build* multiple kernels: make KERNCONF='GENERIC LINT' buildkernel but you couldn't install the kernels with different names.
However, even if you install an SMP and non-SMP kernels with different names, not all kernel modules can be shared -- at least any kernel modules using spinlocks, such as nfs.ko and acpi.ko
#ifdef SMP code #endif
with if (is_smp) { code }
#ifndef _KERNEL_MODULE const static int is_smp = # ifdef SMP 1; # else 0; # endif #else extern const int is_smp; #endif
cheers simon
-- Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\ Work - Mac +++ space for low €€€ NOW!1 +++ Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
Attachment:
signature.asc
Description: OpenPGP digital signature