summaryrefslogtreecommitdiff
path: root/lib/libc/arch/m88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-12-25 18:49:08 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-12-25 18:49:08 +0000
commitf5ed6cfbe9243478083b3bb09f752e09bb2ed562 (patch)
treeaa67729250fc5180774828e3477318e41ff010be /lib/libc/arch/m88k
parent8e9c251b291097cf3ef82e6e25a5a1639b51f5b1 (diff)
Use an unsigned comparison against minbrk.
ok deraadt@
Diffstat (limited to 'lib/libc/arch/m88k')
-rw-r--r--lib/libc/arch/m88k/sys/brk.S13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/libc/arch/m88k/sys/brk.S b/lib/libc/arch/m88k/sys/brk.S
index 08f4d345728..7bb6155cd4e 100644
--- a/lib/libc/arch/m88k/sys/brk.S
+++ b/lib/libc/arch/m88k/sys/brk.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: brk.S,v 1.6 2003/06/02 20:18:31 millert Exp $ */
+/* $OpenBSD: brk.S,v 1.7 2003/12/25 18:49:06 miod Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -35,29 +35,28 @@
#if defined(LIBC_SCCS)
.data
- .string "$OpenBSD: brk.S,v 1.6 2003/06/02 20:18:31 millert Exp $"
+ .string "$OpenBSD: brk.S,v 1.7 2003/12/25 18:49:06 miod Exp $"
#endif /* LIBC_SCCS */
#include "SYS.h"
.globl _end
- .globl minbrk
.globl __curbrk
.data
.align 8
-minbrk: .long _end
- .text
+ASGLOBAL(minbrk)
+ .long _end
ENTRY(brk)
or.u r5,r0,hi16(minbrk)
ld r5,r5,lo16(minbrk)
cmp r3,r5,r2
- bb1 le,r3,1f /* r2 should be > minbrk; can't go below end */
+ bb1 ls,r3,1f /* r2 should be > minbrk; can't go below end */
or r2,r5,0 /* otherwise, set r2 to minbrk */
1:
or r4,r2,0
- or r13,r0,SYS_break
+ or r13,r0,__SYSCALLNAME(SYS_,break)
tb0 0,r0,128
br __cerror
or.u r5,r0,hi16(__curbrk)