diff options
author | peter <peter@FreeBSD.org> | 1999-05-09 23:30:01 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-05-09 23:30:01 +0000 |
commit | 593dd5803d65c079b5298621bfe839a237b1b66e (patch) | |
tree | b1106684662305ca2b644eaa7bba0dc67a207248 /sys/i386/isa/ipl_funcs.c | |
parent | 1b1bfd57f3ccf4c0eb8d280acf3b03eeeea1e6af (diff) | |
download | FreeBSD-src-593dd5803d65c079b5298621bfe839a237b1b66e.zip FreeBSD-src-593dd5803d65c079b5298621bfe839a237b1b66e.tar.gz |
loadandclear() uses an atomic instruction (even on SMP, where it's an
implicitly LOCK'ed instruction), so there shouldn't be any harm in making
it volatile pointer compatable for one of the users of it. It seems to
generate the same code regardless.
Diffstat (limited to 'sys/i386/isa/ipl_funcs.c')
-rw-r--r-- | sys/i386/isa/ipl_funcs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/isa/ipl_funcs.c b/sys/i386/isa/ipl_funcs.c index 56dd312..98a5412 100644 --- a/sys/i386/isa/ipl_funcs.c +++ b/sys/i386/isa/ipl_funcs.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ipl_funcs.c,v 1.17 1999/04/28 01:04:15 luoqi Exp $ + * $Id: ipl_funcs.c,v 1.18 1999/05/06 22:13:53 peter Exp $ */ #include <sys/types.h> @@ -44,7 +44,7 @@ void name(void) \ setbits(var, bits); \ } -DO_SETBITS(setdelayed, &ipending, loadandclear((unsigned *)&idelayed)) +DO_SETBITS(setdelayed, &ipending, loadandclear(&idelayed)) DO_SETBITS(setsoftast, &ipending, SWI_AST_PENDING) DO_SETBITS(setsoftcamnet,&ipending, SWI_CAMNET_PENDING) DO_SETBITS(setsoftcambio,&ipending, SWI_CAMBIO_PENDING) @@ -143,7 +143,7 @@ void name(void) \ IFCPL_UNLOCK(); \ } -DO_SETBITS(setdelayed, &ipending, loadandclear((unsigned *)&idelayed)) +DO_SETBITS(setdelayed, &ipending, loadandclear(&idelayed)) DO_SETBITS(setsoftast, &ipending, SWI_AST_PENDING) DO_SETBITS(setsoftcamnet,&ipending, SWI_CAMNET_PENDING) DO_SETBITS(setsoftcambio,&ipending, SWI_CAMBIO_PENDING) |