diff options
author | 1999-12-05 02:37:36 +0000 | |
---|---|---|
committer | 1999-12-05 02:37:36 +0000 | |
commit | fec7e433f362c4e3f6bada0b76ce53c834b79578 (patch) | |
tree | 6f4f00e77559682057aa9fe1fa9410c473d0037b /lib/libc/arch/hppa/string | |
parent | wax and mongoose host isa too of course (diff) | |
download | wireguard-openbsd-fec7e433f362c4e3f6bada0b76ce53c834b79578.tar.xz wireguard-openbsd-fec7e433f362c4e3f6bada0b76ce53c834b79578.zip |
fix space regs load insns, also some tabs vs spaces
Diffstat (limited to 'lib/libc/arch/hppa/string')
-rw-r--r-- | lib/libc/arch/hppa/string/bcopy.m4 | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/lib/libc/arch/hppa/string/bcopy.m4 b/lib/libc/arch/hppa/string/bcopy.m4 index bf69e1349ab..dca65ee1b48 100644 --- a/lib/libc/arch/hppa/string/bcopy.m4 +++ b/lib/libc/arch/hppa/string/bcopy.m4 @@ -1,4 +1,4 @@ -define(_rcsid,``$OpenBSD: bcopy.m4,v 1.1 1999/09/14 00:46:18 mickey Exp $'')dnl +define(_rcsid,``$OpenBSD: bcopy.m4,v 1.2 1999/12/05 02:37:36 mickey Exp $'')dnl dnl dnl dnl This is the source file for bcopy.S, spcopy.S @@ -52,7 +52,7 @@ dnl dnl dnl define(`STWS',`ifelse($5, `u',dnl -`ifelse($1, `1', `vshd $4, t`$1', r31 +`ifelse($1, `1', `vshd $4, t`$1', r31 stbys,B,m r31, F`'4($2, $3)', `0', `0', `vshd t`'decr($1), t`$1', r31 stws,M r31, F`'4($2, $3)')',dnl @@ -66,7 +66,7 @@ define(`STWSS', `ifelse(`$3', `1', `dnl', ')dnl define(`LDWSS', `ifelse(`$3', `1', `dnl', `0', `0', `LDWSS($1, $2, eval($3 - 1))') - ldws,M F`'4($1, $2), t`'$3`'dnl + ldws,M F`'4($1, $2), t`'$3`'dnl ')dnl dnl dnl copy data in 4-words blocks @@ -200,7 +200,7 @@ L($1, done) ifelse(NAME, `bcopy', ` #if defined(LIBC_SCCS) - .text + .text .asciz "versionmacro" #endif @@ -211,6 +211,7 @@ ALTENTRY(memmove) copy t1, arg1 ALTENTRY(ovbcopy) ALTENTRY(bcopy) +ALTENTRY(mycopy) add arg0, arg2, t1 comb,>,n t1, arg1, L(bcopy, reverse) hppa_copy(bcopy_f, sr0, arg0, sr0, arg1, arg2, `+') @@ -238,30 +239,30 @@ ifelse(NAME, `spcopy', .import curproc, data .import copy_on_fault, code ENTRY(spcopy) - ldw HPPA_FRAME_ARG(4)(sp), ret1 + ldw HPPA_FRAME_ARG(4)(sp), ret1 comb,>=,n r0, ret1, L(spcopy, ret) ` /* setup fault handler */ - ldil L%curproc, r31 - ldw R%curproc(r31), r31 - ldil L%copy_on_fault, t2 - ldw p_addr(r31), r31 - ldo R%copy_on_fault(t2), t2 - stw t2, pcb_onfault+u_pcb(r31) + ldil L%curproc, r31 + ldw R%curproc(r31), r31 + ldil L%copy_on_fault, t2 + ldw p_addr(r31), r31 + ldo R%copy_on_fault(t2), t2 + stw t2, pcb_onfault+u_pcb(r31) ' - mfctl sr2, ret0 /* XXX need this?, sr1 is scratchable */ - mtctl arg0, sr1 - mtctl arg2, sr2 - copy ret1, arg0 /* ret1 is used in hppa_blcopy() */ + mfsp sr2, ret0 /* XXX need this?, sr1 is scratchable */ + mtsp arg0, sr1 + mtsp arg2, sr2 + copy ret1, arg0 /* ret1 is used in hppa`'_blcopy() */ hppa_copy(spcopy, sr1, arg1, sr2, arg3, ret1, `+') /* reset fault handler */ - stw r0, pcb_onfault+u_pcb(r31) - mtctl ret0, sr2 + stw r0, pcb_onfault+u_pcb(r31) + mtsp ret0, sr2 L(spcopy, ret) - bv 0(rp) - copy r0, ret0 + bv 0(rp) + copy r0, ret0 EXIT(spcopy) #endif ')dnl |