Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/mips/sys We can't assume syscall retains t0, u...
details: https://anonhg.NetBSD.org/src/rev/dd86c740838e
branches: trunk
changeset: 759519:dd86c740838e
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun Dec 12 09:03:06 2010 +0000
description:
We can't assume syscall retains t0, unless it's documented as ABI.
diffstat:
lib/libc/arch/mips/sys/sbrk.S | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 53a97d33e785 -r dd86c740838e lib/libc/arch/mips/sys/sbrk.S
--- a/lib/libc/arch/mips/sys/sbrk.S Sun Dec 12 09:00:37 2010 +0000
+++ b/lib/libc/arch/mips/sys/sbrk.S Sun Dec 12 09:03:06 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sbrk.S,v 1.17 2009/12/14 01:07:42 matt Exp $ */
+/* $NetBSD: sbrk.S,v 1.18 2010/12/12 09:03:06 tsutsui Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -38,7 +38,7 @@
#if 0
RCSID("from: @(#)sbrk.s 8.1 (Berkeley) 6/4/93")
#else
- RCSID("$NetBSD: sbrk.S,v 1.17 2009/12/14 01:07:42 matt Exp $")
+ RCSID("$NetBSD: sbrk.S,v 1.18 2010/12/12 09:03:06 tsutsui Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
@@ -62,6 +62,7 @@
SYSTRAP(break)
bne a3, zero, 1f
move v0, v1 # return old val of curbrk from above
+ PTR_LA t0, _C_LABEL(__curbrk)
PTR_S a0, 0(t0) # save current val of curbrk from above
PIC_RETURN()
1:
Home |
Main Index |
Thread Index |
Old Index