wok diff linld/stuff/src/_BEG.ASM @ rev 19871

linld/tazboot: fix magic
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 30 17:22:13 2017 +0200 (2017-03-30)
parents 6f494adb2c71
children c9c88c0a2ae5
line diff
     1.1 --- a/linld/stuff/src/_BEG.ASM	Sun Mar 05 13:22:08 2017 +0100
     1.2 +++ b/linld/stuff/src/_BEG.ASM	Thu Mar 30 17:22:13 2017 +0200
     1.3 @@ -35,19 +35,14 @@
     1.4  ;***************************************************************
     1.5  
     1.6  ; Check for oldies
     1.7 -		pushf
     1.8 -		mov	bh, 0F0h
     1.9 -		push	bx		; < 286 : flags[12..15] are forced 1
    1.10 -		popf			; = 286 : flags[12..15] are forced 0
    1.11 -		pushf			; > 286 : only flags[15] is forced 0
    1.12 -		pop	dx
    1.13 -		popf
    1.14 -		add	dh,bh		; NS=386+, NC=286
    1.15 +		push	sp
    1.16 +		pop	ax
    1.17  		mov	bx,offset msg_badcpu
    1.18 +		sub	ax,sp
    1.19  		ifndef	NO386
    1.20 -                js	no_vcpi   	;it is a 86/186/286, not a 386+
    1.21 +                jnz	no_vcpi   	;it is a 86/186 not a 286+
    1.22  		else
    1.23 -		js	endcpu
    1.24 +		jnz	endcpu
    1.25  		endif
    1.26                  p386
    1.27  		ifdef	EXTRA