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 brk(2) should update __curbrk, not __...



details:   https://anonhg.NetBSD.org/src/rev/53a97d33e785
branches:  trunk
changeset: 759518:53a97d33e785
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Dec 12 09:00:37 2010 +0000

description:
brk(2) should update __curbrk, not __minbrk or garbage.

diffstat:

 lib/libc/arch/mips/sys/brk.S |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 1ca9f6d94a9b -r 53a97d33e785 lib/libc/arch/mips/sys/brk.S
--- a/lib/libc/arch/mips/sys/brk.S      Sun Dec 12 08:54:25 2010 +0000
+++ b/lib/libc/arch/mips/sys/brk.S      Sun Dec 12 09:00:37 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: brk.S,v 1.17 2009/12/14 01:07:42 matt Exp $    */
+/*     $NetBSD: brk.S,v 1.18 2010/12/12 09:00:37 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -38,7 +38,7 @@
 #if 0
        RCSID("from: @(#)brk.s  8.1 (Berkeley) 6/4/93")
 #else
-       RCSID("$NetBSD: brk.S,v 1.17 2009/12/14 01:07:42 matt Exp $")
+       RCSID("$NetBSD: brk.S,v 1.18 2010/12/12 09:00:37 tsutsui Exp $")
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -65,6 +65,7 @@
        li              v0, SYS_break
        syscall
        bne             a3, zero, 2f
+       PTR_LA          t0, _C_LABEL(__curbrk)
        PTR_S           a0, 0(t0)
        move            v0, zero
        PIC_RETURN()



Home | Main Index | Thread Index | Old Index