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

linld: spare up to 30k more for zImage (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 09 13:26:32 2019 +0100 (10 months ago)
parents 10fa26e4c60d
children 664d83fb04f9
line diff
     1.1 --- a/linld/stuff/src/JUMP.ASM	Fri Nov 08 20:55:40 2019 +0100
     1.2 +++ b/linld/stuff/src/JUMP.ASM	Sat Nov 09 13:26:32 2019 +0100
     1.3 @@ -96,20 +96,15 @@
     1.4  		push	es
     1.5  		pop	ss
     1.6  		mov	sp,0A000h
     1.7 -		extrn	_rm_size:word
     1.8 +		extrn	_csip:dword
     1.9  		ifdef NO386
    1.10 -		mov	si,offset _rm_size-4	; _rm_size, _pm_high, _rm_buf
    1.11 +		mov	si,offset _csip
    1.12  		lodsw
    1.13 -		xchg	ax,bx
    1.14 -		lodsw
    1.15 -		push	ax			; _csip high
    1.16 -		push	bx			; _csip low
    1.17 -		lodsw				; skip _rm_size
    1.18 +		push	[word si]
    1.19 +		push	ax
    1.20  		else
    1.21 -		mov	si,offset _rm_size+2	; _rm_size, _pm_high, _rm_buf
    1.22 -		push	[dword si-6]		; _csip
    1.23 +		push	[dword _csip]
    1.24  		endif
    1.25 -		lodsb				; _pm_high
    1.26  
    1.27  		ifdef	NO386
    1.28  		mov	cx,ss
    1.29 @@ -126,7 +121,10 @@
    1.30  		rep
    1.31  		  movsb
    1.32  
    1.33 -		or	cl,al			; load high ?
    1.34 +		mov	cl,0			; load high ?
    1.35 +		org	$-1
    1.36 +		global	_pm_high:byte
    1.37 +_pm_high	db	?
    1.38  		inc	cx
    1.39  		push	cx
    1.40  		mov	ax,[word ss:024Ch]
    1.41 @@ -212,7 +210,11 @@
    1.42  		jne	@@notelks
    1.43  		xchg	ax,si
    1.44  		endif
    1.45 +		ifdef	MOVE_SETUP
    1.46 +		mov	ch,1h		; DS=ES=SS=0100
    1.47 +		else
    1.48  		mov	cx,100h		; DS=ES=SS=0100
    1.49 +		endif
    1.50  		mov	ss,cx
    1.51  		mov	es,cx
    1.52  		mov	cl,20h		; CS=0120