diff --git a/mach/sun2/libsys/_sbrk.s b/mach/sun2/libsys/_sbrk.s index ba658b2de..9f1d82eda 100644 --- a/mach/sun2/libsys/_sbrk.s +++ b/mach/sun2/libsys/_sbrk.s @@ -7,17 +7,17 @@ __sbrk: move.l #~3,d1 and.l d1,d0 move.l d0,a0 - move.l curbrk,d0 + move.l .limhp,d0 add.l #3,d0 and.l d1,d0 - move.l d0,curbrk + move.l d0,.limhp add.l d0,a0 move.l a0,4(sp) pea 17 ! not SYS_sbrk trap #0 bcs 1f - move.l curbrk,d0 - move.l 4(sp),curbrk + move.l .limhp,d0 + move.l 4(sp),.limhp rts 1: jmp cerror @@ -31,9 +31,6 @@ __brk: pea 17 trap #0 bcs 1b - move.l 4(sp),curbrk + move.l 4(sp),.limhp clr.l d0 rts - -.sect .data -curbrk: .data4 endbss diff --git a/mach/sun2/libsys/sbrk.s b/mach/sun2/libsys/sbrk.s index 62aba666b..5ecb6b07c 100644 --- a/mach/sun2/libsys/sbrk.s +++ b/mach/sun2/libsys/sbrk.s @@ -7,17 +7,17 @@ _sbrk: move.l #~3,d1 and.l d1,d0 move.l d0,a0 - move.l curbrk,d0 + move.l .limhp,d0 add.l #3,d0 and.l d1,d0 - move.l d0,curbrk + move.l d0,.limhp add.l d0,a0 move.l a0,4(sp) pea 17 ! not SYS_sbrk trap #0 bcs 1f - move.l curbrk,d0 - move.l 4(sp),curbrk + move.l .limhp,d0 + move.l 4(sp),.limhp rts 1: jmp cerror @@ -31,9 +31,6 @@ _brk: pea 17 trap #0 bcs 1b - move.l 4(sp),curbrk + move.l 4(sp),.limhp clr.l d0 rts - -.sect .data -curbrk: .data4 endbss diff --git a/mach/sun3/libsys/_sbrk.s b/mach/sun3/libsys/_sbrk.s index cc34c334e..b5a6bc30e 100644 --- a/mach/sun3/libsys/_sbrk.s +++ b/mach/sun3/libsys/_sbrk.s @@ -7,17 +7,17 @@ __sbrk: move.l #~3,d1 and.l d1,d0 move.l d0,a0 - move.l (curbrk),d0 + move.l (.limhp),d0 add.l #3,d0 and.l d1,d0 - move.l d0,(curbrk) + move.l d0,(.limhp) add.l d0,a0 move.l a0,(4,sp) pea (17) ! not SYS_sbrk trap #0 bcs 1f - move.l (curbrk),d0 - move.l (4,sp),(curbrk) + move.l (.limhp),d0 + move.l (4,sp),(.limhp) rts 1: jmp (cerror) @@ -31,11 +31,8 @@ __brk: pea (17) trap #0 bcs 1f - move.l (4,sp),(curbrk) + move.l (4,sp),(.limhp) clr.l d0 rts 1: jmp (cerror) - -.sect .data -curbrk: .data4 endbss diff --git a/mach/sun3/libsys/sbrk.s b/mach/sun3/libsys/sbrk.s index b67d5800c..f09295826 100644 --- a/mach/sun3/libsys/sbrk.s +++ b/mach/sun3/libsys/sbrk.s @@ -7,17 +7,17 @@ _sbrk: move.l #~3,d1 and.l d1,d0 move.l d0,a0 - move.l (curbrk),d0 + move.l (.limhp),d0 add.l #3,d0 and.l d1,d0 - move.l d0,(curbrk) + move.l d0,(.limhp) add.l d0,a0 move.l a0,(4,sp) pea (17) ! not SYS_sbrk trap #0 bcs 1f - move.l (curbrk),d0 - move.l (4,sp),(curbrk) + move.l (.limhp),d0 + move.l (4,sp),(.limhp) rts 1: jmp (cerror) @@ -31,11 +31,8 @@ _brk: pea (17) trap #0 bcs 1f - move.l (4,sp),(curbrk) + move.l (4,sp),(.limhp) clr.l d0 rts 1: jmp (cerror) - -.sect .data -curbrk: .data4 endbss