wok diff linld/stuff/src/XMM.ASM @ rev 23992
linld: skip xmm_alloc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 12 10:41:29 2020 +0000 (2020-12-12) |
parents | 53c1379e13fa |
children | a946c1651082 |
line diff
1.1 --- a/linld/stuff/src/XMM.ASM Mon Jan 13 11:52:56 2020 +0100 1.2 +++ b/linld/stuff/src/XMM.ASM Sat Dec 12 10:41:29 2020 +0000 1.3 @@ -89,16 +89,17 @@ 1.4 1.5 endp xmm_driver 1.6 1.7 + ifdef WITH_XMM_ALLOC 1.8 include "himem.inc" 1.9 1.10 ;*************************************************************** 1.11 -;_fastcall void xmm_alloc(struct image_himem *m) 1.12 +;_fastcall void xmm_alloc(si:struct image_himem *m) 1.13 ;*************************************************************** 1.14 global @xmm_alloc$qp11image_himem:near 1.15 proc @xmm_alloc$qp11image_himem near 1.16 1.17 ifndef NO386 1.18 - mov edx,[(image_himem bx).size] ; m->size 1.19 + mov edx,[(image_himem si).size] ; m->size 1.20 ;dec edx 1.21 shr edx,10 ; to Kb 1.22 inc edx 1.23 @@ -106,16 +107,15 @@ 1.24 else 1.25 ;mov ax,-1 1.26 ;cwd 1.27 - ;add ax,[word (image_himem bx).size] ; lo m->size 1.28 - ;adc dx,[word (image_himem bx+2).size] ; hi m->size 1.29 - les ax,[dword (image_himem bx).size] ; m->size 1.30 + ;add ax,[word (image_himem si).size] ; lo m->size 1.31 + ;adc dx,[word (image_himem si+2).size] ; hi m->size 1.32 + les ax,[dword (image_himem si).size] ; m->size 1.33 mov cl,16-10 1.34 extrn N_LXLSH@ES:near 1.35 call N_LXLSH@ES 1.36 inc dx 1.37 mov ah,9h ;allocate blk of DX kilobytes (<64Mb) 1.38 endif 1.39 - push bx 1.40 call xmm_driver ; 1.41 jnz @@goerr 1.42 ;now: dx=handle of the blk 1.43 @@ -124,7 +124,6 @@ 1.44 ;now: dx:bx=addr of blk 1.45 xchg ax,bx 1.46 @@goerr: 1.47 - pop bx 1.48 jnz @@err 1.49 mov [word (image_himem bx).buf],ax ; lo m->buf 1.50 mov [word (image_himem bx+2).buf],dx ; hi m->buf 1.51 @@ -132,6 +131,7 @@ 1.52 ret 1.53 1.54 endp @xmm_alloc$qp11image_himem 1.55 + endif 1.56 1.57 ends _TEXT 1.58