wok-current diff linld/stuff/src/_BEG.ASM @ rev 20426
linld: fix xmm_driver
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 13 00:46:30 2018 +0200 (2018-08-13) |
parents | 7547eb83cc06 |
children | f4bc280fe3c4 |
line diff
1.1 --- a/linld/stuff/src/_BEG.ASM Mon Jan 01 11:21:28 2018 +0100 1.2 +++ b/linld/stuff/src/_BEG.ASM Mon Aug 13 00:46:30 2018 +0200 1.3 @@ -23,10 +23,10 @@ 1.4 ;*************************************************************** 1.5 ; clear bss 1.6 ;*************************************************************** 1.7 - mov bx,offset _bss_start 1.8 + mov si,offset _bss_start 1.9 clearbss: 1.10 - mov [byte bx],0 ; clear bss + heap + sp 1.11 - inc bx 1.12 + mov [byte si],0 ; clear bss + heap + sp 1.13 + inc si 1.14 jne clearbss 1.15 cld 1.16 1.17 @@ -93,18 +93,17 @@ 1.18 label check_vcpi near 1.19 push ds 1.20 ; Check whether it is safe to call 67h (we trust only known EMM managers) 1.21 - xor bx,bx 1.22 - push bx 1.23 + push si 1.24 pop ds 1.25 mov ds,[word 67h*4+2] 1.26 - cmp [dword bx+10+4],'0XXX' 1.27 + cmp [dword si+10+4],'0XXX' 1.28 jne skip 1.29 ;mov eax,'XMME' 1.30 - ;xor eax,[dword bx+10] 1.31 + ;xor eax,[dword si+10] 1.32 ; QMME also works (as told by <J.S.Peatfield@damtp.cambridge.ac.uk>) 1.33 ;shl eax,8 1.34 mov ax,'ME' 1.35 - xor ax,[word bx+10] 1.36 + xor ax,[word si+10] 1.37 skip: 1.38 pop ds 1.39 jne no_vcpi