summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2005-10-04 23:46:15 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2005-10-04 23:46:15 +0000
commit77d26456becee7664ac6c527a74d954c4fda886b (patch)
tree202035b5cb08040e8a8fd688259ec3b63f3627b0 /sys/dev
parent3c5047c66ba2ed42bc059213c4241621c653a0b4 (diff)
Emit '#define NUM_CRIT_SECTIONS' instead of 'static const int
num_crit_sections' so that array declarations in aic7[9x]xx.c use compile time constructs that can be parsed by Anil. No functional change.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/microcode/aic7xxx/aicasm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/microcode/aic7xxx/aicasm.c b/sys/dev/microcode/aic7xxx/aicasm.c
index e488d2bcdbf..aa6fb679c69 100644
--- a/sys/dev/microcode/aic7xxx/aicasm.c
+++ b/sys/dev/microcode/aic7xxx/aicasm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aicasm.c,v 1.13 2004/09/18 19:51:53 mickey Exp $ */
+/* $OpenBSD: aicasm.c,v 1.14 2005/10/04 23:46:14 krw Exp $ */
/*
* Aic7xxx SCSI host adapter firmware asssembler
*
@@ -38,7 +38,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
- * $Id: aicasm.c,v 1.13 2004/09/18 19:51:53 mickey Exp $
+ * $Id: aicasm.c,v 1.14 2005/10/04 23:46:14 krw Exp $
*
* $FreeBSD: src/sys/dev/aic7xxx/aicasm/aicasm.c,v 1.37 2004/03/12 21:45:25 trhodes Exp $
*/
@@ -456,8 +456,7 @@ output_code()
fprintf(ofile, "\n};\n\n");
fprintf(ofile,
-"static const int num_critical_sections = sizeof(critical_sections)\n"
-" / sizeof(*critical_sections);\n");
+"#define NUM_CRITICAL_SECTIONS (sizeof(critical_sections) / sizeof(*critical_sections))\n");
fprintf(stderr, "%s: %d instructions used\n", appname, instrcount);
}