summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/smp.h
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2000-03-28 18:06:49 +0000
committerdillon <dillon@FreeBSD.org>2000-03-28 18:06:49 +0000
commitb852fcb1606b3b2cda4c9464e3e5d51c9152c4fd (patch)
treef4d0afb5c90aa2fc555ad217757a051e3a8889e7 /sys/amd64/include/smp.h
parent1ec21e179d8cdcd295c69b7653deb9896f29b271 (diff)
downloadFreeBSD-src-b852fcb1606b3b2cda4c9464e3e5d51c9152c4fd.zip
FreeBSD-src-b852fcb1606b3b2cda4c9464e3e5d51c9152c4fd.tar.gz
The SMP cleanup commit broke UP compiles. Make UP compiles work again.
Diffstat (limited to 'sys/amd64/include/smp.h')
-rw-r--r--sys/amd64/include/smp.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/amd64/include/smp.h b/sys/amd64/include/smp.h
index c2340ae..c11bcb2 100644
--- a/sys/amd64/include/smp.h
+++ b/sys/amd64/include/smp.h
@@ -183,6 +183,23 @@ extern int smp_started;
extern volatile int smp_idle_loops;
#endif /* !LOCORE */
-#endif /* SMP || APIC_IO */
+#else /* !SMP && !APIC_IO */
+
+/*
+ * Create dummy MP lock empties
+ */
+
+static __inline void
+get_mplock(void)
+{
+}
+
+static __inline void
+rel_mplock(void)
+{
+}
+
+#endif
+
#endif /* _KERNEL */
#endif /* _MACHINE_SMP_H_ */
OpenPOWER on IntegriCloud