From 7eda92f409d97271886c048fb04fd97e2a8d56a7 Mon Sep 17 00:00:00 2001 From: kettenis Date: Thu, 14 Apr 2011 19:37:07 +0000 Subject: [PATCH] Make spstrcpy actually copy strings. --- sys/arch/hppa64/hppa64/locore.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/hppa64/hppa64/locore.S b/sys/arch/hppa64/hppa64/locore.S index f487e86fcab..0d5637c7adf 100644 --- a/sys/arch/hppa64/hppa64/locore.S +++ b/sys/arch/hppa64/hppa64/locore.S @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.S,v 1.22 2011/04/14 19:34:55 kettenis Exp $ */ +/* $OpenBSD: locore.S,v 1.23 2011/04/14 19:37:07 kettenis Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -1558,9 +1558,9 @@ LEAF_ENTRY(spstrcpy) $spstrcpy_loop ldbs,ma 1(%sr1, %arg1), arg7 - comb,= arg4, %arg1, $spstrcpy_exit + comb,= %r0, arg7, $spstrcpy_exit stbs,ma arg7, 1(%sr2, %arg3) - comb,<>,n %r0, arg7, $spstrcpy_loop + comb,<>,n arg4, %arg1, $spstrcpy_loop nop ldi ENAMETOOLONG, %ret0