mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Update for AMD64 (repocopied from i386/net). We can depend on having
the bswap instruction (yay!). Update for register parameter passing instead of i386 style stack based param passing.
This commit is contained in:
parent
4dbb9c65d7
commit
8d8a622e6b
4 changed files with 6 additions and 10 deletions
|
|
@ -45,8 +45,6 @@ __FBSDID("$FreeBSD$");
|
|||
.weak CNAME(htonl)
|
||||
.set CNAME(htonl),CNAME(__htonl)
|
||||
ENTRY(__htonl)
|
||||
movl 4(%esp),%eax
|
||||
xchgb %al,%ah
|
||||
roll $16,%eax
|
||||
xchgb %al,%ah
|
||||
movl %edi,%eax
|
||||
bswap %eax
|
||||
ret
|
||||
|
|
|
|||
|
|
@ -45,6 +45,6 @@ __FBSDID("$FreeBSD$");
|
|||
.weak CNAME(htons)
|
||||
.set CNAME(htons),CNAME(__htons)
|
||||
ENTRY(__htons)
|
||||
movzwl 4(%esp),%eax
|
||||
movl %edi,%eax
|
||||
xchgb %al,%ah
|
||||
ret
|
||||
|
|
|
|||
|
|
@ -45,8 +45,6 @@ __FBSDID("$FreeBSD$");
|
|||
.weak CNAME(ntohl)
|
||||
.set CNAME(ntohl),CNAME(__ntohl)
|
||||
ENTRY(__ntohl)
|
||||
movl 4(%esp),%eax
|
||||
xchgb %al,%ah
|
||||
roll $16,%eax
|
||||
xchgb %al,%ah
|
||||
movl %edi,%eax
|
||||
bswap %eax
|
||||
ret
|
||||
|
|
|
|||
|
|
@ -47,6 +47,6 @@ __FBSDID("$FreeBSD$");
|
|||
.weak CNAME(ntohs)
|
||||
.set CNAME(ntohs),CNAME(__ntohs)
|
||||
ENTRY(__ntohs)
|
||||
movzwl 4(%esp),%eax
|
||||
movl %edi,%eax
|
||||
xchgb %al,%ah
|
||||
ret
|
||||
|
|
|
|||
Loading…
Reference in a new issue