From a5e21be5e36df464444ff8081314a44ee7f2e0a7 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Mon, 15 Mar 1999 00:03:41 +0000 Subject: Sun Mar 14 18:53:01 1999 Thomas Bushnell, BSG * device/ds_routines.c (ds_read_done): When touching memory to mark it dirty, make sure we say "volatile" so the compiler doesn't optimize it out. --- device/ds_routines.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/device/ds_routines.c b/device/ds_routines.c index fc7cde9..e370503 100644 --- a/device/ds_routines.c +++ b/device/ds_routines.c @@ -1137,8 +1137,8 @@ boolean_t ds_read_done(ior) register int c; for (touch = start_sent; touch < end_sent; touch += PAGE_SIZE) { - c = *(char *)touch; - *(char *)touch = c; + c = *(volatile char *)touch; + *(volatile char *)touch = c; } } -- cgit v1.2.3