wok rev 5259

linux/boot: fix noinitramfs case
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 13 12:30:20 2010 +0200 (2010-04-13)
parents 5924ec6bb02f
children f9c53840d065
files linux/stuff/linux-header-2.6.30.6.u linux/stuff/linux-header-2.6.33.2.u
line diff
     1.1 --- a/linux/stuff/linux-header-2.6.30.6.u	Mon Apr 12 22:30:38 2010 +0200
     1.2 +++ b/linux/stuff/linux-header-2.6.30.6.u	Tue Apr 13 12:30:20 2010 +0200
     1.3 @@ -169,9 +169,10 @@
     1.4  +ksyssize	= 	500
     1.5  +	orw	$0x80FF, type_of_loader-ksyssize(%di) # loader type = 0xFF
     1.6  +	movw	$stacktop-0x200, heap_end_ptr-ksyssize(%di)
     1.7 -+	movb	$0x0F, %al		# destination = 0x100000
     1.8 ++	movb	$0x10, %al		# destination = 0x100000
     1.9  +	movb	$5, %cl
    1.10  +initrdlp:
    1.11 ++	decw	%ax
    1.12  +	movb	$0x93,%ah
    1.13  +	movw	%ax, 28(%si)		# bootsect_dst_base+2
    1.14  +	movb	$(SYSSEG/4096), %al	# source = SYSSEG
    1.15 @@ -208,7 +209,6 @@
    1.16  +	popf
    1.17  +	ja	syslp
    1.18  +	movw	ramdisk_image+2,%ax
    1.19 -+	decw	%ax
    1.20  +	movw	$ramdisk_size,%di
    1.21  +	movb	$9, %cl
    1.22  +	cmpb	%al,28(%si)
     2.1 --- a/linux/stuff/linux-header-2.6.33.2.u	Mon Apr 12 22:30:38 2010 +0200
     2.2 +++ b/linux/stuff/linux-header-2.6.33.2.u	Tue Apr 13 12:30:20 2010 +0200
     2.3 @@ -169,9 +169,10 @@
     2.4  +ksyssize	= 	500
     2.5  +	orw	$0x80FF, type_of_loader-ksyssize(%di) # loader type = 0xFF
     2.6  +	movw	$stacktop-0x200, heap_end_ptr-ksyssize(%di)
     2.7 -+	movb	$0x0F, %al		# destination = 0x100000
     2.8 ++	movb	$0x10, %al		# destination = 0x100000
     2.9  +	movb	$5, %cl
    2.10  +initrdlp:
    2.11 ++	decw	%ax
    2.12  +	movb	$0x93,%ah
    2.13  +	movw	%ax, 28(%si)		# bootsect_dst_base+2
    2.14  +	movb	$(SYSSEG/4096), %al	# source = SYSSEG
    2.15 @@ -208,7 +209,6 @@
    2.16  +	popf
    2.17  +	ja	syslp
    2.18  +	movw	ramdisk_image+2,%ax
    2.19 -+	decw	%ax
    2.20  +	movw	$ramdisk_size,%di
    2.21  +	movb	$9, %cl
    2.22  +	cmpb	%al,28(%si)