wok-current diff linld/stuff/src/_BEG.ASM @ rev 23806
linld: add isoboot
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 24 16:16:52 2020 +0000 (2020-05-24) |
parents | a31ec0e0df8e |
children | d964f766faa5 |
line diff
1.1 --- a/linld/stuff/src/_BEG.ASM Thu Nov 14 10:49:19 2019 +0100 1.2 +++ b/linld/stuff/src/_BEG.ASM Sun May 24 16:16:52 2020 +0000 1.3 @@ -60,6 +60,9 @@ 1.4 clearbss: 1.5 mov [si],bl ; clear bss + heap 1.6 inc si 1.7 + ifdef ISOHOOK 1.8 + cmp si,bx 1.9 + endif 1.10 jne clearbss 1.11 1.12 ;*************************************************************** 1.13 @@ -100,6 +103,21 @@ 1.14 jmp endcpu86 1.15 endif 1.16 1.17 + ifdef ISOHOOK 1.18 + extrn @ret:near 1.19 + global iso_open_hack 1.20 +iso_open_hack dw @ret 1.21 + global iso_read_hack 1.22 +iso_read_hack dw @ret 1.23 + global iso_lseek_hack 1.24 +iso_lseek_hack dw @ret 1.25 + global iso_close_hack 1.26 +iso_close_hack dw @ret 1.27 + global iso_cleanup_hack 1.28 +iso_cleanup_hack dw @ret 1.29 + dw _cpu_features+3 1.30 + endif 1.31 + 1.32 ;*************************************************************** 1.33 ; checks for vcpi 1.34 ;***************************************************************