summaryrefslogtreecommitdiffstats
path: root/sys/i386/include
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-01-04 20:42:25 +0000
committerdg <dg@FreeBSD.org>1995-01-04 20:42:25 +0000
commitc34fd64cc9123e3fa8aff99b762eb2c3895183de (patch)
tree316aed2ec0135ce932f5515a1d93d0d72408a4b9 /sys/i386/include
parent1b1f429a90ce5fbf108b85030fe54731b6874ef8 (diff)
downloadFreeBSD-src-c34fd64cc9123e3fa8aff99b762eb2c3895183de.zip
FreeBSD-src-c34fd64cc9123e3fa8aff99b762eb2c3895183de.tar.gz
Corrected the list of volatile registers for outsb, outsw, and outsl.
This bug caused my ethernet driver to break, among other things no doubt.
Diffstat (limited to 'sys/i386/include')
-rw-r--r--sys/i386/include/cpufunc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/include/cpufunc.h b/sys/i386/include/cpufunc.h
index 9dd0bf0..f678863 100644
--- a/sys/i386/include/cpufunc.h
+++ b/sys/i386/include/cpufunc.h
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: cpufunc.h,v 1.29 1994/11/14 15:04:06 bde Exp $
+ * $Id: cpufunc.h,v 1.30 1994/11/15 14:55:25 bde Exp $
*/
/*
@@ -219,7 +219,7 @@ outsb(u_int port, void *addr, size_t cnt)
{
__asm __volatile("cld; rep; outsb"
: : "d" (port), "S" (addr), "c" (cnt)
- : "di", "cx");
+ : "si", "cx");
}
static __inline void
@@ -227,7 +227,7 @@ outsw(u_int port, void *addr, size_t cnt)
{
__asm __volatile("cld; rep; outsw"
: : "d" (port), "S" (addr), "c" (cnt)
- : "di", "cx");
+ : "si", "cx");
}
static __inline void
@@ -235,7 +235,7 @@ outsl(u_int port, void *addr, size_t cnt)
{
__asm __volatile("cld; rep; outsl"
: : "d" (port), "S" (addr), "c" (cnt)
- : "di", "cx");
+ : "si", "cx");
}
static __inline void
OpenPOWER on IntegriCloud