From 5df972afb615beef2123a19aeca58e473e3d4e95 Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 28 Jan 2013 19:38:13 +0000 Subject: Mark 'ticks', 'time_second', and 'time_uptime' as volatile to prevent the compiler from caching their values in tight loops. Reviewed by: bde MFC after: 1 week --- sys/pci/ncr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/pci/ncr.c') diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c index 793ae80..ead7d43 100644 --- a/sys/pci/ncr.c +++ b/sys/pci/ncr.c @@ -1386,7 +1386,7 @@ static char *ncr_name (ncb_p np) * Kernel variables referenced in the scripts. * THESE MUST ALL BE ALIGNED TO A 4-BYTE BOUNDARY. */ -static void *script_kvars[] = +static volatile void *script_kvars[] = { &time_second, &ticks, &ncr_cache }; static struct script script0 = { -- cgit v1.1