wok-current rev 20524

linld: fix reset_bufv
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 06 13:32:05 2018 +0100 (2018-11-06)
parents d0b42f5e3543
children 0edf1de936ad
files linld/stuff/src/CRTL.ASM
line diff
     1.1 --- a/linld/stuff/src/CRTL.ASM	Mon Nov 05 21:29:26 2018 +0100
     1.2 +++ b/linld/stuff/src/CRTL.ASM	Tue Nov 06 13:32:05 2018 +0100
     1.3 @@ -781,11 +781,11 @@
     1.4          global  _reset_bufv:near
     1.5          proc    _reset_bufv near
     1.6  
     1.7 -		pop	bx			;caller return address
     1.8 -		pop	ax
     1.9 +		pop	ax			;caller return address
    1.10 +		pop	bx
    1.11 +		push	bx
    1.12  		push	ax
    1.13 -		push	bx
    1.14 -		mov	[curdata],ax
    1.15 +		mov	[curdata],bx
    1.16  		and	[dword (data_himem bx).cacheidx],0
    1.17  		ret
    1.18