diff options
author | 1996-11-14 13:17:06 +0000 | |
---|---|---|
committer | 1996-11-14 13:17:06 +0000 | |
commit | e61bd73ad25367461c95f0129ef08fa551772275 (patch) | |
tree | c39fb64bca3fb5a8a87878913a20cb1cbcaef009 | |
parent | Missed one cast. (diff) | |
download | wireguard-openbsd-e61bd73ad25367461c95f0129ef08fa551772275.tar.xz wireguard-openbsd-e61bd73ad25367461c95f0129ef08fa551772275.zip |
Add memcpy entrypoint to bcopy et al. With this, in-tree gcc now
compiles a kernel which can be booted. In-tree as still loses though.
-rw-r--r-- | sys/arch/alpha/alpha/locore.s | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/alpha/alpha/locore.s b/sys/arch/alpha/alpha/locore.s index 0589b15c26e..c0fe8306db3 100644 --- a/sys/arch/alpha/alpha/locore.s +++ b/sys/arch/alpha/alpha/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.5 1996/10/30 22:38:13 niklas Exp $ */ +/* $OpenBSD: locore.s,v 1.6 1996/11/14 13:17:06 niklas Exp $ */ /* $NetBSD: locore.s,v 1.26 1996/10/17 02:50:38 cgd Exp $ */ /* @@ -924,10 +924,16 @@ NESTED(copyoutstr, 4, 16, ra, 0, 0) * case; that's that ovbcopy() is for. However, it doesn't hurt * to do both in bcopy, and it does provide a measure of safety. * + * void memcpy(char *to, char*from, size_t len); * void bcopy(char *from, char *to, size_t len); * void ovbcopy(char *from, char *to, size_t len); */ -LEAF(bcopy,3) +LEAF(memcpy,3) + cmoveq zero,a0,t5 + cmoveq zero,a1,a0 + cmoveq zero,t5,a1 + +XLEAF(bcopy,3) XLEAF(ovbcopy,3) /* Check for negative length */ |