wok diff linld/stuff/src/VCPI.ASM @ rev 23986

syslinux: fix iso2exe/init
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 02 12:35:41 2020 +0000 (2020-12-02)
parents fcb1de9af8f7
children a946c1651082
line diff
     1.1 --- a/linld/stuff/src/VCPI.ASM	Thu Oct 17 10:59:42 2019 +0200
     1.2 +++ b/linld/stuff/src/VCPI.ASM	Wed Dec 02 12:35:41 2020 +0000
     1.3 @@ -140,11 +140,7 @@
     1.4                  ;push    ax
     1.5  
     1.6  ;Calculate pagedir/page0 addrs, initialize cr3 and pagedir[0]
     1.7 -                xor     eax,eax
     1.8  ;    heap_top = prepare_vcpi(malloc_or_die(8*1024+4)); 
     1.9 -		mov	ah,8*1024/256
    1.10 -                extrn   malloc_or_die:near
    1.11 -		call	malloc_or_die
    1.12  
    1.13                  mov     edx,cs
    1.14                  shl     edx,4           ;edx = linear addr of CS
    1.15 @@ -159,6 +155,8 @@
    1.16  		add	bx,8
    1.17  		js	@@fixup
    1.18  		mov	bh,10h
    1.19 +		extrn	_heap_top:word
    1.20 +		movzx	eax,[_heap_top]
    1.21                  add     eax,edx
    1.22  		and	ax,0f000h       ;eax = 4k aligned linear addr of pagebuf
    1.23                  add     eax,ebx         ;eax=page0 linear addr
    1.24 @@ -176,7 +174,6 @@
    1.25                          ;                         => ########
    1.26  ; Return
    1.27                  lea     ax,[bx+di+4]
    1.28 -		extrn	_heap_top:word
    1.29  		mov	[_heap_top],ax
    1.30                  ;ret
    1.31