From 1927c6227cdd7f0cf979077b3b14dee386667b8d Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Sat, 18 Sep 1999 20:15:28 +0000 Subject: define uniprocessor in boot/kernel.h too --- rc.d/rc.sysinit | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'rc.d/rc.sysinit') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index df697ab4..df838f6e 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -486,17 +486,23 @@ fi # Generate a header that defines the boot kernel. if uname -r | grep -q smp ; then - KVER="1" + SMP="1" + UP="0" else - KVER="0" + SMP="0" + UP="1" fi cat > /boot/kernel.h << EOF /* This file is automatically generated at boot time. */ -#ifndef __KERNEL_VERSION_H_ -#define __KERNEL_VERSION_H_ +#ifndef __BOOT_KERNEL_H_ +#define __BOOT_KERNEL_H_ #ifndef __BOOT_KERNEL_SMP -#define __BOOT_KERNEL_SMP $KVER +#define __BOOT_KERNEL_SMP $SMP +#endif + +#ifndef __BOOT_KERNEL_UP +#define __BOOT_KERNEL_UP $UP #endif #endif -- cgit v1.2.1