From: ceriel Date: Mon, 22 Jan 1990 16:48:13 +0000 (+0000) Subject: corrected X-Git-Tag: release-5-5~1878 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0710269e32b37265b85262b1e3679c1026e5f919;p=ack.git corrected --- diff --git a/mach/i86/libsys/_brk.s b/mach/i86/libsys/_brk.s index 5f19bbb0b..00bde7da7 100644 --- a/mach/i86/libsys/_brk.s +++ b/mach/i86/libsys/_brk.s @@ -1,18 +1,14 @@ .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text .define __brk .define xbrk -.define np -.extern __brk -.extern xbrk,endbss -.extern np, cerror __brk: mov bx,sp mov ax,2(bx) mov cx,sp sub cx,128 jbe 1f - mov bx,(np) - mov (np),ax + mov bx,(.limhp) + mov (.limhp),ax sub ax,bx jbe 2f call xbrk @@ -34,6 +30,3 @@ xbrk: 3: pop di ret -.sect .data -np: .data2 endbss -.sect .text diff --git a/mach/i86/libsys/_sbrk.s b/mach/i86/libsys/_sbrk.s index 322d288ec..f9b34b0ea 100644 --- a/mach/i86/libsys/_sbrk.s +++ b/mach/i86/libsys/_sbrk.s @@ -1,17 +1,16 @@ .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text .define __sbrk -.extern __sbrk, xbrk, cerror __sbrk: push bp mov bp,sp mov ax,4(bp) -mov bx,(np) +mov bx,(.limhp) add ax,bx mov cx,sp sub cx,128 sub cx,ax jbe 1f -mov (np),ax +mov (.limhp),ax sub ax,bx jbe 2f call xbrk diff --git a/mach/i86/libsys/brk.s b/mach/i86/libsys/brk.s index 1f775498d..0756697a5 100644 --- a/mach/i86/libsys/brk.s +++ b/mach/i86/libsys/brk.s @@ -1,39 +1,4 @@ .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text .define _brk -.define xbrk -.define np -.extern _brk -.extern xbrk,endbss -.extern np, cerror _brk: - mov bx,sp - mov ax,2(bx) - mov cx,sp - sub cx,128 - jbe 1f - mov bx,(np) - mov (np),ax - sub ax,bx - jbe 2f - call xbrk -2: - xor ax,ax - ret -1: - mov ax,0xc - jmp cerror -xbrk: - push di - mov di,bx - mov cx,ax - xor ax,ax - shr cx,1 - repz stos - jae 3f - stosb -3: - pop di - ret -.sect .data -np: .data2 endbss -.sect .text + jmp __brk diff --git a/mach/i86/libsys/sbrk.s b/mach/i86/libsys/sbrk.s index b3b4e6a24..3cd593f95 100644 --- a/mach/i86/libsys/sbrk.s +++ b/mach/i86/libsys/sbrk.s @@ -1,25 +1,4 @@ .sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text .define _sbrk -.extern _sbrk, xbrk, cerror _sbrk: -push bp -mov bp,sp -mov ax,4(bp) -mov bx,(np) -add ax,bx -mov cx,sp -sub cx,128 -sub cx,ax -jbe 1f -mov (np),ax -sub ax,bx -jbe 2f -call xbrk -2: -mov ax,bx -pop bp -ret -1: -mov ax,0xc -pop bp -jmp cerror + jmp __sbrk