diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-05-22 21:00:45 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-05-22 21:00:45 +0000 |
commit | 0613423b6a97860feb2fb812e3fd3ccb10d1b5d3 (patch) | |
tree | 6af0fce82321152eff6e242d50167421ccc4db0c /sys/arch/mvme88k | |
parent | e9beb0a94f075e8a218b74094d3e57e53b814f63 (diff) |
Safer work queue thaw sequence.
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r-- | sys/arch/mvme88k/dev/vsvar.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/mvme88k/dev/vsvar.h b/sys/arch/mvme88k/dev/vsvar.h index 49ac931fe4a..6e8bde1ad05 100644 --- a/sys/arch/mvme88k/dev/vsvar.h +++ b/sys/arch/mvme88k/dev/vsvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vsvar.h,v 1.11 2004/05/22 19:34:12 miod Exp $ */ +/* $OpenBSD: vsvar.h,v 1.12 2004/05/22 21:00:44 miod Exp $ */ /* * Copyright (c) 2004, Miodrag Vallat. * Copyright (c) 1999 Steve Murphree, Jr. @@ -126,6 +126,10 @@ struct vs_softc { #define CRB_CLR_ER crb_write(2, CRB_CRSW, CRSW & ~M_CRSW_ER) #define THAW_REG mcsb_read(2, MCSB_THAW) -#define THAW(x) mcsb_write(2, MCSB_THAW, ((x) << 8) | M_THAW_TWQE) +#define THAW(x) \ + do { \ + mcsb_write(1, MCSB_THAW, (x) << 8); \ + mcsb_write(1, MCSB_THAW + 1, M_THAW_TWQE); \ + } while (0) #endif /* _M328VAR_H */ |