wok rev 18229

linld: add tobzimage (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 23 10:33:13 2015 +0200 (2015-07-23)
parents df58e6c974a3
children 347588653a93
files linld/stuff/tobzimage.S
line diff
     1.1 --- a/linld/stuff/tobzimage.S	Thu Jul 23 09:44:18 2015 +0200
     1.2 +++ b/linld/stuff/tobzimage.S	Thu Jul 23 10:33:13 2015 +0200
     1.3 @@ -23,12 +23,15 @@
     1.4  	pushaw
     1.5  	pushw	%ds
     1.6  	popw	%es
     1.7 -	movw	$mover+0x200, %si
     1.8 +	.byte	0x66, 0xB8	# movl $?, %eax
     1.9 +	rep
    1.10 +	  movsw
    1.11 +	popaw
    1.12 +	iret
    1.13  	xorw	%di, %di
    1.14  	pushw	%es
    1.15  	pushw	%di
    1.16 -	movsw
    1.17 -	movsw
    1.18 +	stosl
    1.19  	movw	$0x200, %di
    1.20  	movw	%sp, %bp
    1.21  	movw	$9, %cx
    1.22 @@ -57,7 +60,7 @@
    1.23  	int	$0x15
    1.24  	incw	20(%si)
    1.25  	incw	28(%si)
    1.26 -	subb	$0x10, %dh
    1.27 +	subw	$0x1000, %dx
    1.28  	ja	mvlp
    1.29  	movw	%bp, %sp
    1.30  	movw	$0x400, %si
    1.31 @@ -65,12 +68,6 @@
    1.32  	decb	-15(%di)
    1.33  	movb	-15(%di), %ch
    1.34  	lret
    1.35 -mover:
    1.36 -	rep
    1.37 -	  movsw
    1.38 -	popaw
    1.39 -	iret
    1.40 -moverend:
    1.41  kernel_version:
    1.42  	.asciz	"zImage"
    1.43  	.org	512