summaryrefslogtreecommitdiff
path: root/lib/libc/arch/powerpc/sys/brk.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arch/powerpc/sys/brk.S')
-rw-r--r--lib/libc/arch/powerpc/sys/brk.S6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/arch/powerpc/sys/brk.S b/lib/libc/arch/powerpc/sys/brk.S
index 77ea58769a0..b88ee26fd49 100644
--- a/lib/libc/arch/powerpc/sys/brk.S
+++ b/lib/libc/arch/powerpc/sys/brk.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: brk.S,v 1.12 2016/05/07 19:05:22 guenther Exp $ */
+/* $OpenBSD: brk.S,v 1.13 2016/05/15 00:15:10 guenther Exp $ */
/*
* Copyright (c) 1996 Dale Rahn
@@ -66,7 +66,9 @@ PSEUDO_PREFIX(,brk,break)
/* check for error */
cmpwi 0, 0
beq+ .L_brk_ok /* OK so this is stupid but I haven't read b */
- b _ASM_LABEL(__cerror)
+ stw 0, R2_OFFSET_ERRNO(2)
+ li 3, -1
+ blr
/* update, __curbrk and return */
.L_brk_ok: