Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64/amd64 The %dx argument of in/out is not a mem...



details:   https://anonhg.NetBSD.org/src/rev/65f5f5a2db60
branches:  trunk
changeset: 765166:65f5f5a2db60
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri May 20 13:33:11 2011 +0000

description:
The %dx argument of in/out is not a memory reference, so don't use it as
such.

diffstat:

 sys/arch/amd64/amd64/busfunc.S |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 2a6a37d4cd79 -r 65f5f5a2db60 sys/arch/amd64/amd64/busfunc.S
--- a/sys/arch/amd64/amd64/busfunc.S    Fri May 20 13:32:35 2011 +0000
+++ b/sys/arch/amd64/amd64/busfunc.S    Fri May 20 13:33:11 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: busfunc.S,v 1.9 2010/05/05 16:53:57 dyoung Exp $       */
+/*     $NetBSD: busfunc.S,v 1.10 2011/05/20 13:33:11 joerg Exp $       */
 
 /*-
  * Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
@@ -170,7 +170,7 @@
        movq    %rcx, %rdi
        movq    %r8, %rcx
        rep
-       insb    (%dx), %es:(%rdi)
+       insb    %dx, %es:(%rdi)
        ret
        .align  16
 1:
@@ -192,7 +192,7 @@
        movq    %rcx, %rdi
        movq    %r8, %rcx
        rep
-       insw    (%dx), %es:(%rdi)
+       insw    %dx, %es:(%rdi)
        ret
        .align  16
 1:
@@ -214,7 +214,7 @@
        movq    %rcx, %rdi
        movq    %r8, %rcx
        rep
-       insl    (%dx), %es:(%rdi)
+       insl    %dx, %es:(%rdi)
        ret
        .align  16
 1:
@@ -258,7 +258,7 @@
        movq    %rcx, %rsi
        movq    %r8, %rcx
        rep
-       outsb   %ds:(%rsi), (%dx)
+       outsb   %ds:(%rsi), %dx
        ret
        .align  16
 1:
@@ -280,7 +280,7 @@
        movq    %rcx, %rsi
        movq    %r8, %rcx
        rep
-       outsw   %ds:(%rsi), (%dx)
+       outsw   %ds:(%rsi), %dx
        ret
        .align  16
 1:
@@ -302,7 +302,7 @@
        movq    %rcx, %rsi
        movq    %r8, %rcx
        rep
-       outsl   %ds:(%rsi), (%dx)
+       outsl   %ds:(%rsi), %dx
        ret
        .align  16
 1:



Home | Main Index | Thread Index | Old Index