2.1.81 patch for i386-ksyms.c and softirq.h

rjc@snoopy.virtual.net.au
Mon, 26 Jan 1998 14:39:34 +1100 (EST)


The following patch allows 2.1.81 to get a bit closer to compiling as uni-
processor on my system.

diff -ur linux/arch/i386/kernel/i386_ksyms.c linux-patched/arch/i386/kernel/i386_ksyms.c
--- linux/arch/i386/kernel/i386_ksyms.c Mon Jan 26 14:20:54 1998
+++ linux-patched/arch/i386/kernel/i386_ksyms.c Mon Jan 26 14:21:17 1998
@@ -39,7 +39,9 @@
EXPORT_SYMBOL_NOVERS(__down_failed);
EXPORT_SYMBOL_NOVERS(__down_failed_interruptible);
EXPORT_SYMBOL_NOVERS(__up_wakeup);
+#ifdef __SMP__
EXPORT_SYMBOL(global_bh_lock);
+#endif
/* Networking helper routines. */
EXPORT_SYMBOL(csum_partial_copy);
/* Delay loops */
diff -ur linux/include/asm-i386/softirq.h linux-patched/include/asm-i386/softirq.h
--- linux/include/asm-i386/softirq.h Mon Jan 26 13:22:33 1998
+++ linux-patched/include/asm-i386/softirq.h Mon Jan 26 14:25:11 1998
@@ -91,8 +91,6 @@
}

/* These are for the irq's testing the lock */
-#define softirq_trylock() (in_bh ? 0 : (local_bh_count[smp_processor_id()]=1))
-#define softirq_endlock() (local_bh_count[smp_processor_id()] = 0)
#define synchronize_bh() do { } while (0)

#endif /* SMP */

Russell Coker