diff options
author | dg <dg@FreeBSD.org> | 1994-08-09 11:21:44 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-08-09 11:21:44 +0000 |
commit | 12543ae8209a8912e7a9596daeeddbe734a313b3 (patch) | |
tree | a757162ce8c3387b085f07a996dc61130c2a80cf /sys | |
parent | 82430e77cf00be9b57192bbe19a00c0d9757ef30 (diff) | |
download | FreeBSD-src-12543ae8209a8912e7a9596daeeddbe734a313b3.zip FreeBSD-src-12543ae8209a8912e7a9596daeeddbe734a313b3.tar.gz |
Removed ntohl and ntohs functions. These were already inlined assembly in
endian.h.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/support.S | 27 | ||||
-rw-r--r-- | sys/amd64/amd64/support.s | 27 | ||||
-rw-r--r-- | sys/i386/i386/support.s | 27 |
3 files changed, 3 insertions, 78 deletions
diff --git a/sys/amd64/amd64/support.S b/sys/amd64/amd64/support.S index a24d8b5..23297fa 100644 --- a/sys/amd64/amd64/support.S +++ b/sys/amd64/amd64/support.S @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: support.s,v 1.13 1994/06/11 05:12:15 davidg Exp $ + * $Id: support.s,v 1.14 1994/08/04 19:51:01 davidg Exp $ */ #include "assym.s" /* system definitions */ @@ -1077,31 +1077,6 @@ ENTRY(copystr) /* * Miscellaneous kernel support functions */ -ALTENTRY(ntohl) -ENTRY(htonl) - movl 4(%esp),%eax -#ifndef I386_CPU -/* XXX */ -/* Since Gas 1.38 does not grok bswap this has been coded as the - * equivalent bytes. This can be changed back to bswap when we - * upgrade to a newer version of Gas - */ - /* bswap %eax */ - .byte 0x0f - .byte 0xc8 -#else - xchgb %al,%ah - roll $16,%eax - xchgb %al,%ah -#endif - ret - -ALTENTRY(ntohs) -ENTRY(htons) - movzwl 4(%esp),%eax - xchgb %al,%ah - ret - ENTRY(ffs) bsfl 4(%esp),%eax jz 1f diff --git a/sys/amd64/amd64/support.s b/sys/amd64/amd64/support.s index a24d8b5..23297fa 100644 --- a/sys/amd64/amd64/support.s +++ b/sys/amd64/amd64/support.s @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: support.s,v 1.13 1994/06/11 05:12:15 davidg Exp $ + * $Id: support.s,v 1.14 1994/08/04 19:51:01 davidg Exp $ */ #include "assym.s" /* system definitions */ @@ -1077,31 +1077,6 @@ ENTRY(copystr) /* * Miscellaneous kernel support functions */ -ALTENTRY(ntohl) -ENTRY(htonl) - movl 4(%esp),%eax -#ifndef I386_CPU -/* XXX */ -/* Since Gas 1.38 does not grok bswap this has been coded as the - * equivalent bytes. This can be changed back to bswap when we - * upgrade to a newer version of Gas - */ - /* bswap %eax */ - .byte 0x0f - .byte 0xc8 -#else - xchgb %al,%ah - roll $16,%eax - xchgb %al,%ah -#endif - ret - -ALTENTRY(ntohs) -ENTRY(htons) - movzwl 4(%esp),%eax - xchgb %al,%ah - ret - ENTRY(ffs) bsfl 4(%esp),%eax jz 1f diff --git a/sys/i386/i386/support.s b/sys/i386/i386/support.s index a24d8b5..23297fa 100644 --- a/sys/i386/i386/support.s +++ b/sys/i386/i386/support.s @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: support.s,v 1.13 1994/06/11 05:12:15 davidg Exp $ + * $Id: support.s,v 1.14 1994/08/04 19:51:01 davidg Exp $ */ #include "assym.s" /* system definitions */ @@ -1077,31 +1077,6 @@ ENTRY(copystr) /* * Miscellaneous kernel support functions */ -ALTENTRY(ntohl) -ENTRY(htonl) - movl 4(%esp),%eax -#ifndef I386_CPU -/* XXX */ -/* Since Gas 1.38 does not grok bswap this has been coded as the - * equivalent bytes. This can be changed back to bswap when we - * upgrade to a newer version of Gas - */ - /* bswap %eax */ - .byte 0x0f - .byte 0xc8 -#else - xchgb %al,%ah - roll $16,%eax - xchgb %al,%ah -#endif - ret - -ALTENTRY(ntohs) -ENTRY(htons) - movzwl 4(%esp),%eax - xchgb %al,%ah - ret - ENTRY(ffs) bsfl 4(%esp),%eax jz 1f |