1/* 2 * Copyright (c) 1983 Regents of the University of California. 3 * All rights reserved. The Berkeley software License Agreement 4 * specifies the terms and conditions for redistribution. 5 */ 6 7#ifndef lint 8_sccsid:.asciz "@(#)brk.s 5.2 (Berkeley) 06/05/85" 9#endif not lint 10 11#include "SYS.h" 12 13#define SYS_brk 17 14 15 .globl curbrk 16 .globl minbrk 17ENTRY(_brk) 18 jbr ok 19 20ENTRY(brk) 21 cmpl 4(ap),minbrk 22 bgeq ok 23 movl minbrk,4(ap) 24ok: 25 chmk $SYS_brk 26 jcs err 27 movl 4(ap),curbrk 28 clrl r0 29 ret 30err: 31 jmp cerror 32