Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips bcopy -> memcpy
details: https://anonhg.NetBSD.org/src/rev/219a070752be
branches: trunk
changeset: 512296:219a070752be
user: simonb <simonb%NetBSD.org@localhost>
date: Mon Jul 09 01:43:26 2001 +0000
description:
bcopy -> memcpy
diffstat:
sys/arch/mips/mips/locore.S | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diffs (52 lines):
diff -r 5c2aabfd0435 -r 219a070752be sys/arch/mips/mips/locore.S
--- a/sys/arch/mips/mips/locore.S Mon Jul 09 00:58:22 2001 +0000
+++ b/sys/arch/mips/mips/locore.S Mon Jul 09 01:43:26 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.121 2001/05/30 15:24:33 lukem Exp $ */
+/* $NetBSD: locore.S,v 1.122 2001/07/09 01:43:26 simonb Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -775,10 +775,13 @@
.mask 0x80010000, -4
sw ra, 44(sp) # save ra
sw s0, 32(sp) # save s0
+ move v0, a0 # swap a0, a1 for call to memcpy
+ move a0, a1
+ move a1, v0
lw v1, _C_LABEL(curpcb) # set up fault handler
la v0, _C_LABEL(kcopyerr)
lw s0, U_PCB_ONFAULT(v1) # save old handler
- jal bcopy
+ jal memcpy
sw v0, U_PCB_ONFAULT(v1)
lw v1, _C_LABEL(curpcb) # restore the old handler
@@ -811,9 +814,12 @@
.mask 0x80000000, -4
sw ra, CALLFRAME_RA(sp)
blt a0, zero, _C_LABEL(copyerr)
+ move v0, a0 # swap a0, a1 for call to memcpy
+ move a0, a1
+ move a1, v0
lw v1, _C_LABEL(curpcb)
la v0, _C_LABEL(copyerr)
- jal bcopy
+ jal memcpy
sw v0, U_PCB_ONFAULT(v1)
lw v1, _C_LABEL(curpcb)
@@ -835,9 +841,12 @@
.mask 0x80000000, -4
sw ra, CALLFRAME_RA(sp)
blt a1, zero, _C_LABEL(copyerr)
+ move v0, a0 # swap a0, a1 for call to memcpy
+ move a0, a1
+ move a1, v0
lw v1, _C_LABEL(curpcb)
la v0, _C_LABEL(copyerr)
- jal bcopy
+ jal memcpy
sw v0, U_PCB_ONFAULT(v1)
lw v1, _C_LABEL(curpcb)
Home |
Main Index |
Thread Index |
Old Index