wok-current rev 20540

linld: _fastcall calls (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 29 12:11:44 2018 +0100 (2018-11-29)
parents 5211cefde1e4
children 25e3f390625a
files linld/stuff/src/CRTL.ASM
line diff
     1.1 --- a/linld/stuff/src/CRTL.ASM	Thu Nov 29 10:54:56 2018 +0100
     1.2 +++ b/linld/stuff/src/CRTL.ASM	Thu Nov 29 12:11:44 2018 +0100
     1.3 @@ -237,8 +237,9 @@
     1.4          global  @close$qi:near
     1.5          proc    @close$qi near
     1.6  
     1.7 -        global  close:near			; close(bx)
     1.8 +        global  close:near			; close(ax)
     1.9  close:
    1.10 +		xchg	ax,bx
    1.11  		mov	ah,3Eh
    1.12  		or	bx,bx
    1.13  		jnz	dos
    1.14 @@ -384,7 +385,7 @@
    1.15          global  @malloc_or_die$qui:near
    1.16          proc    @malloc_or_die$qui near
    1.17  
    1.18 -                mov	cx,bx			; size
    1.19 +                xchg	ax,cx			; size
    1.20          global  malloc_or_die:near		; malloc_or_die(cx)
    1.21  malloc_or_die:
    1.22  		mov	ax,[_heap_top]		; return value
    1.23 @@ -451,7 +452,7 @@
    1.24          proc    next_chunk near
    1.25  
    1.26  		push	si
    1.27 -		mov	bx,[(image_himem di).fd]
    1.28 +		mov	ax,[(image_himem di).fd]
    1.29  		call	close
    1.30  		ifndef	NO386
    1.31  		xor	eax,eax