wok rev 21781

linld: DOS=UMB,LOADHIGH & co support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 14 19:06:44 2019 +0200 (2019-07-14)
parents 97b8cb8c268b
children 6847c1ac0883
files linld/stuff/src/JUMP.ASM linld/stuff/src/LOAD.CPP
line diff
     1.1 --- a/linld/stuff/src/JUMP.ASM	Sun Jul 14 10:28:47 2019 +0200
     1.2 +++ b/linld/stuff/src/JUMP.ASM	Sun Jul 14 19:06:44 2019 +0200
     1.3 @@ -152,13 +152,12 @@
     1.4  		call	near @@isbzimage	; pop cs ; ds=es=ss
     1.5  
     1.6  		; prepare memcpy32 size & srcofs param to move zImage pm
     1.7 +		ifndef	NO386
     1.8 +		push	8			; size hi
     1.9 +		else
    1.10  		mov	dx,8
    1.11 -		cmp	ax,dx			; buf > 80000h ?
    1.12 -		ja	@@bufhigh
    1.13 -		sub	dx,ax
    1.14 -		inc	dx			; up to 90000h-1
    1.15 -@@bufhigh:
    1.16  		push	dx			; size hi
    1.17 +		endif
    1.18  		push	cx			; size lo=up to 512k
    1.19  		push	ax			; src ofs hi = pm.fallback
    1.20  
     2.1 --- a/linld/stuff/src/LOAD.CPP	Sun Jul 14 10:28:47 2019 +0200
     2.2 +++ b/linld/stuff/src/LOAD.CPP	Sun Jul 14 19:06:44 2019 +0200
     2.3 @@ -216,6 +216,10 @@
     2.4  		 (u16)(topseg()>>12) || _pm_high) {
     2.5          m->fallback = base_himem;
     2.6      }
     2.7 +    if (((u16 *)&m->fallback)[1] == 0) {
     2.8 +	((u16 *)&m->fallback)[0] &= 0;
     2.9 +	((u16 *)&m->fallback)[1]++;	// m->fallback = _64k;
    2.10 +    }
    2.11  
    2.12      load_image(m);
    2.13      return version_string;