Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Feb 1996 16:41:52 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-hackers@freebsd.org, koshy@india.hp.com
Subject:   Re: Doing a rep movsw
Message-ID:  <199602180541.QAA28125@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>How can one perform a "rep movsw" in Gcc?  I saw inline code to do a "rep insw"

asm("rep movsw") :-).

>in machine/cpufunc.h --- is there an equivalent inline macro for "movsw"
>that I've missed out?

No.

>I cannot use `bcopy' here because I am trying to access a memory mapped I/O
>port which requires word accesses (no 8/32 bit accesses are permitted).

There used to be a bcopyw for this.

Write it in C.  "rep movs" isn't very efficient (it shouldn't be used to
implement bcopy except possibly on 386's), and for memory mapped i/o you
will probably be waiting for the i/o.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602180541.QAA28125>