diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2012-02-26 17:41:51 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2012-02-26 17:41:51 +0000 |
commit | 0fbab1f918cbc3d6d61e41e5ce25b6bf6d4904e1 (patch) | |
tree | 192ccc4c1c254bb9eba8d7f94806d416cb158a9b /lib | |
parent | a24a3b804acff59563385362f1ed560ace7ac7bd (diff) |
__cerror gets invoked with errno in v0, not a0.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/librthread/arch/mips64/cerror.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librthread/arch/mips64/cerror.S b/lib/librthread/arch/mips64/cerror.S index b24be16d6ce..0e46796953b 100644 --- a/lib/librthread/arch/mips64/cerror.S +++ b/lib/librthread/arch/mips64/cerror.S @@ -1,4 +1,4 @@ -/* $OpenBSD: cerror.S,v 1.1 2012/02/17 18:02:18 miod Exp $ */ +/* $OpenBSD: cerror.S,v 1.2 2012/02/26 17:41:50 miod Exp $ */ /*- * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. @@ -46,7 +46,7 @@ NON_LEAF(__cerror, FRAMESZ, ra) REG_S ra, RAOFF(sp) REG_S s0, S0OFF(sp) - move s0, a0 + move s0, v0 jal _C_LABEL(__errno) sw s0, 0(v0) |