diff options
author | jhb <jhb@FreeBSD.org> | 2013-01-28 19:38:13 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2013-01-28 19:38:13 +0000 |
commit | 5df972afb615beef2123a19aeca58e473e3d4e95 (patch) | |
tree | 380f661c837f03bdedc0e10252427ed4cde7ed7d /sys/pci/ncr.c | |
parent | 7756bef786978bd5d07c05b55bc8428454d6837d (diff) | |
download | FreeBSD-src-5df972afb615beef2123a19aeca58e473e3d4e95.zip FreeBSD-src-5df972afb615beef2123a19aeca58e473e3d4e95.tar.gz |
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
Diffstat (limited to 'sys/pci/ncr.c')
-rw-r--r-- | sys/pci/ncr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 = { |