summaryrefslogtreecommitdiff
path: root/lib/libc/arch/alpha
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 02:03:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-14 02:03:09 +0000
commit35304edda8fda1cf4a913b153cf7b5a4614309fa (patch)
treec2320f7490a521077f49b23daa7227214d3f585b /lib/libc/arch/alpha
parenta33aa783e1ddab27e15c953367b6e9e7d6fab81b (diff)
from cgd@netbsd; be more conservative when setting the gp
Diffstat (limited to 'lib/libc/arch/alpha')
-rw-r--r--lib/libc/arch/alpha/sys/brk.S5
-rw-r--r--lib/libc/arch/alpha/sys/sbrk.S5
2 files changed, 6 insertions, 4 deletions
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)