From 8fee3d1ece7d22add8da1e8af911dc8d8c2ad3c3 Mon Sep 17 00:00:00 2001 From: tsutsui Date: Sun, 2 Jul 2006 10:40:25 +0000 Subject: [PATCH] Use a volatile variable in DELAY() macro so that gcc4 won't omit it. Fixes output corruption on DCA console boot. XXX some mips ports have the similar macro in . --- sys/arch/hp300/stand/common/samachdep.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/hp300/stand/common/samachdep.h b/sys/arch/hp300/stand/common/samachdep.h index be5203f481f1..a8c524906863 100644 --- a/sys/arch/hp300/stand/common/samachdep.h +++ b/sys/arch/hp300/stand/common/samachdep.h @@ -1,4 +1,4 @@ -/* $NetBSD: samachdep.h,v 1.12 2006/06/25 17:34:30 tsutsui Exp $ */ +/* $NetBSD: samachdep.h,v 1.13 2006/07/02 10:40:25 tsutsui Exp $ */ /* * Copyright (c) 1982, 1990, 1993 @@ -106,7 +106,7 @@ void _transfer(char *, int, int, int, char *, char *); int tgets(char *); -#define DELAY(n) { register int N = cpuspeed * (n); while (--N > 0); } +#define DELAY(n) { volatile int N = cpuspeed * (n); while (--N > 0); } /* bogon grfinfo structure to keep grf_softc happy */ struct grfinfo {