1*21864Sdist/* 2*21864Sdist * Copyright (c) 1983 Regents of the University of California. 3*21864Sdist * All rights reserved. The Berkeley software License Agreement 4*21864Sdist * specifies the terms and conditions for redistribution. 5*21864Sdist */ 69423Smckusick 7*21864Sdist#ifndef lint 8*21864Sdiststatic char sccsid[] = "@(#)sbrk.s 5.1 (Berkeley) 06/03/85"; 9*21864Sdist#endif not lint 10*21864Sdist 119423Smckusick#include "SYS.h" 129423Smckusick 139423Smckusick#define SYS_brk 17 149423Smckusick 159423Smckusick .globl _end 1614126Smckusick .globl minbrk 179423Smckusick .globl curbrk 189423Smckusick 199423Smckusick .data 2014126Smckusickminbrk: .long _end 219423Smckusickcurbrk: .long _end 229423Smckusick .text 239423Smckusick 249423SmckusickENTRY(sbrk) 259423Smckusick addl3 curbrk,4(ap),-(sp) 269423Smckusick pushl $1 279423Smckusick movl ap,r3 289423Smckusick movl sp,ap 299423Smckusick chmk $SYS_brk 309423Smckusick jcs err 319423Smckusick movl curbrk,r0 329423Smckusick addl2 4(r3),curbrk 339423Smckusick ret 349423Smckusickerr: 359423Smckusick jmp cerror 36