summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-12-14 03:16:03 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-12-14 03:16:03 +0000
commit30b83e1ca2681840779f42dc3919e08995d65418 (patch)
treec41e0f4c469533a08e9a4e1e56b45ac42e32a4e4
parentae281c328b9b243922c0fa56ddc97248ba4eb480 (diff)
Workaround a compiler bug on m68k.
-rw-r--r--sys/nfs/nfs_bio.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c
index 3d2a7934b8f..e1f17ed2482 100644
--- a/sys/nfs/nfs_bio.c
+++ b/sys/nfs/nfs_bio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_bio.c,v 1.31 2001/12/10 02:19:34 art Exp $ */
+/* $OpenBSD: nfs_bio.c,v 1.32 2001/12/14 03:16:02 art Exp $ */
/* $NetBSD: nfs_bio.c,v 1.25.4.2 1996/07/08 20:47:04 jtc Exp $ */
/*
@@ -299,7 +299,12 @@ nfs_write(v)
do {
void *win;
voff_t oldoff = uio->uio_offset;
- vsize_t bytelen = uio->uio_resid;
+ vsize_t bytelen;
+
+ /*
+ * XXXART - workaround for compiler bug on 68k. Wieee!
+ */
+ *((volatile vsize_t *)&bytelen) = uio->uio_resid;
nfsstats.biocache_writes++;
np->n_flag |= NMODIFIED;