1*21786Sdist/* 2*21786Sdist * Copyright (c) 1983 Regents of the University of California. 3*21786Sdist * All rights reserved. The Berkeley software License Agreement 4*21786Sdist * specifies the terms and conditions for redistribution. 5*21786Sdist */ 69421Smckusick 7*21786Sdist#ifndef lint 8*21786Sdiststatic char sccsid[] = "@(#)brk.s 5.1 (Berkeley) 06/03/85"; 9*21786Sdist#endif not lint 10*21786Sdist 119421Smckusick#include "SYS.h" 129421Smckusick 139421Smckusick#define SYS_brk 17 149421Smckusick 159421Smckusick .globl curbrk 1614126Smckusick .globl minbrk 1715174SlayerENTRY(_brk) 1815174Slayer jbr ok 199421Smckusick 2014126SmckusickENTRY(brk) 2114126Smckusick cmpl 4(ap),minbrk 2214126Smckusick bgeq ok 2314126Smckusick movl minbrk,4(ap) 2414126Smckusickok: 2514126Smckusick chmk $SYS_brk 2614126Smckusick jcs err 279421Smckusick movl 4(ap),curbrk 289421Smckusick clrl r0 299421Smckusick ret 3014126Smckusickerr: 3114126Smckusick jmp cerror 32