wok rev 23990

syslinux: iso2exe/init should keep keyboard config (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 05 10:20:07 2020 +0000 (12 months ago)
parents afa00d471293
children a1fa13454a0c
files linld/stuff/src/pipehole.awk
line diff
     1.1 --- a/linld/stuff/src/pipehole.awk	Sat Dec 05 09:55:13 2020 +0000
     1.2 +++ b/linld/stuff/src/pipehole.awk	Sat Dec 05 10:20:07 2020 +0000
     1.3 @@ -67,9 +67,7 @@
     1.4  		if (/do \{/) ishimem=2
     1.5  		if (/byte ptr DGROUP:_vcpi,0/) print "	mov	bx,si"
     1.6  		if (/bx,si/ || /push	bp/ || /bp,sp/ || /push	di/) next
     1.7 -		if (/sp,2/) {
     1.8 -			next
     1.9 -		}
    1.10 +		if (/sp,2/) next
    1.11  		if (/bp\+4/) {
    1.12  			print "	global	load_imagez:near"
    1.13  			print "load_imagez:"
    1.14 @@ -160,7 +158,7 @@
    1.15  	}
    1.16  	if (/\[0\] = m-\>fallback/) isload=6
    1.17  	if (isload == 6) {  # LOAD.LST
    1.18 -		if (/si\+2/) $0="	lodsw"
    1.19 +		if (/si\+2/) { print "	lodsw"; $0="	push	di" }
    1.20  		if (/les/) sub(/bx,/,"di,")
    1.21  		if (/bx\+4/ || /es:/) next
    1.22  		if (/si\+6/) {
    1.23 @@ -168,9 +166,9 @@
    1.24  			print "	movsw"
    1.25  			print "	movsw"
    1.26  			print "	movsw"
    1.27 +			print "	pop	di"
    1.28  			next
    1.29  		}
    1.30 -		if (/	pop	si/) print "	pop	di"
    1.31  	}
    1.32  	if (/version_string = /) isload=5
    1.33  	if (isload == 5) {  # LOAD.LST
    1.34 @@ -195,7 +193,6 @@
    1.35  	}
    1.36  	if (/void load_initrd\(\)/) isload=3
    1.37  	if (isload == 3) {  # LOAD.LST
    1.38 -		if (/push	si/) { print; $0="	push	di" }
    1.39  		if(/jmp/) next
    1.40  		sub(/\[di/,"[bx")
    1.41  		sub(/\di,/,"bx,")