diff options
author | simokawa <simokawa@FreeBSD.org> | 1999-06-26 15:22:33 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 1999-06-26 15:22:33 +0000 |
commit | 22873f97176d802249f127108bb5d1002a4e8dde (patch) | |
tree | 1be0e7bb25ff75d9cccb2a622fb2bf09f3e2aa51 /lib/libc | |
parent | e77d71685cf165fc9711d2681d61637e4ffe3ef4 (diff) | |
download | FreeBSD-src-22873f97176d802249f127108bb5d1002a4e8dde.zip FreeBSD-src-22873f97176d802249f127108bb5d1002a4e8dde.tar.gz |
Just return `curbrk' for sbrk(0) to avoid syscall overhead.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/alpha/sys/sbrk.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/alpha/sys/sbrk.S b/lib/libc/alpha/sys/sbrk.S index 3ecdd68..5f4e15a 100644 --- a/lib/libc/alpha/sys/sbrk.S +++ b/lib/libc/alpha/sys/sbrk.S @@ -40,9 +40,11 @@ LEAF(sbrk, 1) br pv, L1 /* XXX profiling */ L1: LDGP(pv) ldq a1, curbrk + beq a0, L2 addq a0, a1, a0 CALLSYS_ERROR(break) stq a0, curbrk +L2: mov a1, v0 RET END(sbrk) |