From: ceriel Date: Mon, 30 Mar 1987 12:35:46 +0000 (+0000) Subject: don't use reghp X-Git-Tag: release-5-5~4288 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=e07da4cad3cd39f197d45131e54f9bdba0077c8c;p=ack.git don't use reghp --- diff --git a/mach/m68k4/libsys/brk.s b/mach/m68k4/libsys/brk.s index 68636bf21..2901c9a96 100644 --- a/mach/m68k4/libsys/brk.s +++ b/mach/m68k4/libsys/brk.s @@ -7,21 +7,25 @@ .sect .data .sect .bss .sect .text -_sbrk: move.l .reghp,a0 +_sbrk: move.l nd,a0 add.l 4(sp),a0 move.w #0x11,d0 trap #0 bcs lcerror - move.l .reghp,d0 + move.l nd,d0 move.l d0,a0 add.l 4(sp),a0 - move.l a0,.reghp + move.l a0,nd rts lcerror: jmp cerror _brk: move.w #0x11,d0 move.l 4(sp),a0 trap #0 bcs lcerror - move.l 4(sp),.reghp + move.l 4(sp),nd clr.l d0 rts +.sect .data +nd: + .data4 endbss +.sect .text diff --git a/mach/mantra/libsys/brk.s b/mach/mantra/libsys/brk.s index fb5b42851..aceb347da 100644 --- a/mach/mantra/libsys/brk.s +++ b/mach/mantra/libsys/brk.s @@ -7,21 +7,25 @@ .sect .data .sect .bss .sect .text -_sbrk: move.l .reghp,a0 +_sbrk: move.l nd,a0 add.l 4(sp),a0 move.l #0x11,d0 trap #0 bcs lcerror - move.l .reghp,d0 + move.l nd,d0 move.l d0,a0 add.l 4(sp),a0 - move.l a0,.reghp + move.l a0,nd rts lcerror: jmp cerror _brk: move.l #0x11,d0 move.l 4(sp),a0 trap #0 bcs lcerror - move.l 4(sp),.reghp + move.l 4(sp),nd clr.l d0 rts +.sect .data +nd: + .data4 endbss +.sect .text