wok diff linld/stuff/src/JUMP.ASM @ rev 19900

linld/tazboot: memcpy32 bug workaround
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 08 18:04:44 2017 +0200 (2017-04-08)
parents 9e8f9b54bd83
children 485b1db348fd
line diff
     1.1 --- a/linld/stuff/src/JUMP.ASM	Sat Apr 08 12:48:12 2017 +0200
     1.2 +++ b/linld/stuff/src/JUMP.ASM	Sat Apr 08 18:04:44 2017 +0200
     1.3 @@ -32,7 +32,6 @@
     1.4  
     1.5  		extrn	dos_shutdown:near
     1.6  
     1.7 -		pop	ax			; caller return address
     1.8  		ifdef	NO386
     1.9  		extrn	_topseg:near
    1.10  		call	near _topseg
    1.11 @@ -42,13 +41,12 @@
    1.12  		push	9000h
    1.13  		pop	es
    1.14  		endif
    1.15 -		pop	dx			; ip
    1.16 -		pop	cx			; cs
    1.17  		cli				; we start doing destructive things to DOS
    1.18  		push	es
    1.19  		pop	ss
    1.20  		mov	sp,0A000h
    1.21 -		push	cx dx
    1.22 +		extrn	_csip:dword
    1.23 +		push	[dword _csip]
    1.24  		extrn	_rm_size:word
    1.25  		mov	si,offset _rm_size	; _rm_size, _pm_high, _rm_buf
    1.26  		lodsw
    1.27 @@ -103,7 +101,7 @@
    1.28  		pop	bx
    1.29  		; move zImage pm
    1.30  		mov	ax,8
    1.31 -		cwd
    1.32 +		cwd				; clear dx
    1.33  		cmp	bx,ax
    1.34  		ja	bufhigh
    1.35  		sub	ax,bx