From: deraadt Date: Thu, 14 Dec 1995 02:03:08 +0000 (+0000) Subject: from cgd@netbsd; be more conservative when setting the gp X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=708c792072228fbdbade78141397f241fd1af498;p=openbsd from cgd@netbsd; be more conservative when setting the gp --- diff --git a/lib/libc/arch/alpha/sys/brk.S b/lib/libc/arch/alpha/sys/brk.S index 09421bad028..0bf193b812c 100644 --- a/lib/libc/arch/alpha/sys/brk.S +++ b/lib/libc/arch/alpha/sys/brk.S @@ -1,4 +1,4 @@ -/* $NetBSD: brk.S,v 1.1 1995/02/10 17:50:30 cgd Exp $ */ +/* $NetBSD: brk.S,v 1.2 1995/11/04 00:23:04 cgd Exp $ */ /* * Copyright (c) 1994, 1995 Carnegie-Mellon University. @@ -38,7 +38,8 @@ EXPORT(minbrk) .text LEAF(brk, 1) - SETGP(pv) + br pv, 1f /* XXX profiling */ +1: SETGP(pv) ldq v0, minbrk cmpult a0, v0, t0 cmovne t0, v0, a0 diff --git a/lib/libc/arch/alpha/sys/sbrk.S b/lib/libc/arch/alpha/sys/sbrk.S index 969083b2311..96cf211974b 100644 --- a/lib/libc/arch/alpha/sys/sbrk.S +++ b/lib/libc/arch/alpha/sys/sbrk.S @@ -1,4 +1,4 @@ -/* $NetBSD: sbrk.S,v 1.1 1995/02/10 17:50:38 cgd Exp $ */ +/* $NetBSD: sbrk.S,v 1.2 1995/11/04 00:23:06 cgd Exp $ */ /* * Copyright (c) 1994, 1995 Carnegie-Mellon University. @@ -37,7 +37,8 @@ EXPORT(curbrk) .text LEAF(sbrk, 1) - SETGP(pv) + br pv, 1f /* XXX profiling */ +1: SETGP(pv) ldq a1, curbrk addq a0, a1, a0 SYSCALL_NOLABEL(break)