Slightly rearrange the SSIR inline assembly implementation in order to avoid

making assumptions on C symbol name prefixes.
This commit is contained in:
kleink 1999-06-15 15:26:34 +00:00
parent 51eb26bf7e
commit 857dfc7058
3 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: intr.h,v 1.4 1998/05/18 17:37:38 kleink Exp $ */
/* $NetBSD: intr.h,v 1.5 1999/06/15 15:26:34 kleink Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -165,9 +165,9 @@ extern volatile u_int8_t ssir;
#define SIR_CLOCK 0x02
#define siron(mask) \
__asm __volatile ( "orb %0,_ssir" : : "i" ((mask)))
__asm __volatile ( "orb %1,%0" : "=m" (ssir) : "i" ((mask)))
#define siroff(mask) \
__asm __volatile ( "andb %0,_ssir" : : "ir" (~(mask)));
__asm __volatile ( "andb %1,%0" : "=m" (ssir) : "ir" (~(mask)));
#define setsoftnet() siron(SIR_NET)
#define setsoftclock() siron(SIR_CLOCK)

View File

@ -1,4 +1,4 @@
/* $NetBSD: intr.h,v 1.13 1999/02/28 04:52:07 scottr Exp $ */
/* $NetBSD: intr.h,v 1.14 1999/06/15 15:26:34 kleink Exp $ */
/*
* Copyright (C) 1997 Scott Reynolds
@ -129,9 +129,9 @@ extern volatile u_int8_t ssir;
#define SIR_ADB 0x10
#define siron(mask) \
__asm __volatile ( "orb %0,_ssir" : : "i" (mask))
__asm __volatile ( "orb %1,%0" : "=m" (ssir) : "i" (mask))
#define siroff(mask) \
__asm __volatile ( "andb %0,_ssir" : : "ir" (~(mask)));
__asm __volatile ( "andb %1,%0" : "=m" (ssir) : "ir" (~(mask)));
#define setsoftnet() siron(SIR_NET)
#define setsoftclock() siron(SIR_CLOCK)

View File

@ -1,4 +1,4 @@
/* $NetBSD: intr.h,v 1.2 1998/11/10 22:45:44 dbj Exp $ */
/* $NetBSD: intr.h,v 1.3 1999/06/15 15:26:34 kleink Exp $ */
/*
* Copyright (C) 1997 Scott Reynolds
@ -137,9 +137,9 @@ extern volatile u_int8_t ssir;
#define SIR_ADB 0x10
#define siron(mask) \
__asm __volatile ( "orb %0,_ssir" : : "i" (mask))
__asm __volatile ( "orb %1,%0" : "=m" (ssir) : "i" (mask))
#define siroff(mask) \
__asm __volatile ( "andb %0,_ssir" : : "ir" (~(mask)));
__asm __volatile ( "andb %1,%0" : "=m" (ssir) : "ir" (~(mask)));
#define setsoftnet() siron(SIR_NET)
#define setsoftclock() siron(SIR_CLOCK)