From 812f62f45dd8f24ff9f4a7f95e992c8c31f256e5 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sun, 1 Jul 2012 12:11:54 +0000 Subject: Do not define XDC_DIAG if option SMALL_KERNEL; shaves about 14KB, and allows sparc floppies to fit again. --- sys/arch/sparc/dev/xd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/arch/sparc/dev/xd.c b/sys/arch/sparc/dev/xd.c index 166dee9db63..8c3040b9ea6 100644 --- a/sys/arch/sparc/dev/xd.c +++ b/sys/arch/sparc/dev/xd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xd.c,v 1.56 2011/07/06 04:49:35 matthew Exp $ */ +/* $OpenBSD: xd.c,v 1.57 2012/07/01 12:11:53 miod Exp $ */ /* $NetBSD: xd.c,v 1.37 1997/07/29 09:58:16 fair Exp $ */ /* @@ -53,7 +53,9 @@ */ #undef XDC_DEBUG /* full debug */ +#if !defined(SMALL_KERNEL) #define XDC_DIAG /* extra sanity checks */ +#endif #if defined(DIAGNOSTIC) && !defined(XDC_DIAG) #define XDC_DIAG /* link in with master DIAG option */ #endif -- cgit v1.2.3