Sync usage with man page.
[netbsd-mini2440.git] / lib / libc / pc532 / sys / brk.s
blob96f46588515b6eb414010c58ce453ef8d74c7b97
1 /*
2 * Copyright (c) 1992 Helsinki University of Technology
3 * All Rights Reserved.
4 *
5 * Permission to use, copy, modify and distribute this software and its
6 * documentation is hereby granted, provided that both the copyright
7 * notice and this permission notice appear in all copies of the
8 * software, derivative works or modified versions, and any portions
9 * thereof, and that both notices appear in supporting documentation.
11 * HELSINKI UNIVERSITY OF TECHNOLOGY ALLOWS FREE USE OF THIS SOFTWARE IN
12 * ITS "AS IS" CONDITION. HELSINKI UNIVERSITY OF TECHNOLOGY DISCLAIMS ANY
13 * LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
14 * USE OF THIS SOFTWARE.
17 * HISTORY
18 * 11-May-92 Johannes Helander (jvh) at Helsinki University of Technology
19 * Created.
21 * $Id: brk.s,v 1.1 1993/09/17 18:43:49 phil Exp $
24 #include <sys/syscall.h>
25 #include "SYS.h"
27 .globl _curbrk
28 .globl _minbrk
30 ENTRY(_brk)
31 br ok
33 ENTRY(brk)
34 cmpd S_ARG0, _minbrk(pc)
35 bge ok
36 movd _minbrk(pc), S_ARG0
37 ok:
38 movd SYS_break,r0
39 SVC
40 bcs cerror
41 movd S_ARG0, _curbrk(pc)
42 movqd 0, r0
43 ret 0