wok rev 19208

linld/tobzimage: add elks support (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 12 16:37:08 2016 +0200 (2016-06-12)
parents 60776d829b2a
children f7ec9f320ebe
files linld/stuff/tobzimage.S
line diff
     1.1 --- a/linld/stuff/tobzimage.S	Sun Jun 12 15:30:59 2016 +0100
     1.2 +++ b/linld/stuff/tobzimage.S	Sun Jun 12 16:37:08 2016 +0200
     1.3 @@ -114,14 +114,14 @@
     1.4  	int	$0x15
     1.5  	incw	20(%si)
     1.6  	incw	28(%si)
     1.7 -	subb	$0x10, %dh
     1.8 +	subw	$0x1000, %dx
     1.9  	ja	mvlp
    1.10  	addw	$48, %sp
    1.11  #ifdef ELKS_SUPPORT
    1.12  	//cmpl	$0x534B4C45, -26(%di)
    1.13 +	movw	$0x100, %cx
    1.14  elks_patch:
    1.15  	jmp	notelks
    1.16 -	movw	$0x100, %cx
    1.17  	movb	%ch, 23(%bx)
    1.18  	movw	%cx, %es
    1.19  	pushw	%di
    1.20 @@ -137,18 +137,20 @@
    1.21  #endif
    1.22  	movw	$0x400, %si
    1.23  	decb	-15(%di)
    1.24 -	movb	-15(%di), %ch
    1.25  #ifdef LINUX001_SUPPORT
    1.26  	//cmpw	$0x3AE8, 0x3F(%si)
    1.27  linux001_patch:
    1.28  	jmp	notlnx001
    1.29  	movb	$0x42, (%bx)
    1.30  	xorw	%di, %di
    1.31 +# ifndef ELKS_SUPPORT
    1.32  	movw	$0x100, %cx
    1.33 +# endif
    1.34  	rep
    1.35  	  movsw
    1.36  notlnx001:
    1.37  #endif
    1.38 +	movb	-15(%di), %ch
    1.39  	lret
    1.40  endcode:
    1.41