diff --git a/mach/m68020/libsys/_brk.s b/mach/m68020/libsys/_brk.s index 36edc68c6..2924f1cca 100644 --- a/mach/m68020/libsys/_brk.s +++ b/mach/m68020/libsys/_brk.s @@ -7,19 +7,19 @@ .sect .data .sect .bss .sect .text -__sbrk: move.l (.reghp),d0 +__sbrk: move.l (.limhp),d0 add.l d0,(4,sp) move.l #0x11,d0 trap #0 - bcs lcerror - move.l (.reghp),d0 + bcs Icerror + move.l (.limhp),d0 move.l d0,a0 - move.l (4,sp),(.reghp) + move.l (4,sp),(.limhp) rts lcerror: jmp (cerror) __brk: move.l #0x11,d0 trap #0 bcs lcerror - move.l (4,sp),(.reghp) + move.l (4,sp),(.limhp) clr.l d0 rts diff --git a/mach/m68020/libsys/brk.s b/mach/m68020/libsys/brk.s index c52c17ec4..dcbe6e069 100644 --- a/mach/m68020/libsys/brk.s +++ b/mach/m68020/libsys/brk.s @@ -7,19 +7,19 @@ .sect .data .sect .bss .sect .text -_sbrk: move.l (.reghp),d0 +_sbrk: move.l (.limhp),d0 add.l d0,(4,sp) move.l #0x11,d0 trap #0 bcs lcerror - move.l (.reghp),d0 + move.l (.limhp),d0 move.l d0,a0 - move.l (4,sp),(.reghp) + move.l (4,sp),(.limhp) rts lcerror: jmp (cerror) _brk: move.l #0x11,d0 trap #0 bcs lcerror - move.l (4,sp),(.reghp) + move.l (4,sp),(.limhp) clr.l d0 rts