diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2003-12-25 18:49:08 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2003-12-25 18:49:08 +0000 |
commit | f5ed6cfbe9243478083b3bb09f752e09bb2ed562 (patch) | |
tree | aa67729250fc5180774828e3477318e41ff010be /lib/libc/arch/sparc64 | |
parent | 8e9c251b291097cf3ef82e6e25a5a1639b51f5b1 (diff) |
Use an unsigned comparison against minbrk.
ok deraadt@
Diffstat (limited to 'lib/libc/arch/sparc64')
-rw-r--r-- | lib/libc/arch/sparc64/sys/brk.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/arch/sparc64/sys/brk.S b/lib/libc/arch/sparc64/sys/brk.S index b0e63917f04..e1e22500577 100644 --- a/lib/libc/arch/sparc64/sys/brk.S +++ b/lib/libc/arch/sparc64/sys/brk.S @@ -1,4 +1,4 @@ -/* $OpenBSD: brk.S,v 1.3 2003/06/02 20:18:33 millert Exp $ */ +/* $OpenBSD: brk.S,v 1.4 2003/12/25 18:49:07 miod Exp $ */ /* $NetBSD: brk.S,v 1.9 2000/07/25 20:15:40 mycroft Exp $ */ /* @@ -59,7 +59,7 @@ ENTRY(_brk) ldx [%o5 + %o4], %o4 ldx [%o4], %o1 /* %o1 = minbrk */ cmp %o1, %o0 /* if (minbrk > %o0) */ - movg %xcc, %o1, %o0 /* %o0 = minbrk */ + movgu %xcc, %o1, %o0 /* %o0 = minbrk */ mov %o0, %o2 /* save argument to syscall */ mov SYS_break, %g1 t ST_SYSCALL @@ -74,7 +74,7 @@ ENTRY(_brk) sethi %hi(_C_LABEL(minbrk)), %o1 /* %o1 = minbrk */ ldx [%o1 + %lo(_C_LABEL(minbrk))], %o1 cmp %o1, %o0 /* if (minbrk > %o0) */ - movg %xcc, %o1, %o0 /* %o0 = minbrk */ + movgu %xcc, %o1, %o0 /* %o0 = minbrk */ mov %o0, %o2 /* save argument to syscall */ mov SYS_break, %g1 t ST_SYSCALL |