wok rev 6714

linux/bootloader.sh: align initrdlen to 32bits
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 14 13:41:19 2010 +0200 (2010-10-14)
parents e86c6b88aff0
children 39cb6f60c89e
files linux/stuff/bootloader.sh
line diff
     1.1 --- a/linux/stuff/bootloader.sh	Thu Oct 14 13:05:38 2010 +0200
     1.2 +++ b/linux/stuff/bootloader.sh	Thu Oct 14 13:41:19 2010 +0200
     1.3 @@ -159,7 +159,7 @@
     1.4  		Kbase=$(getlong $CodeAdrOfs $bs)
     1.5  		storelong $RamfsAdrOfs \
     1.6  			$(( (0x1000000 - $initrdlen) & 0xFFFF0000 )) $bs
     1.7 -		storelong $RamfsLenOfs $initrdlen $bs
     1.8 +		storelong $RamfsLenOfs $(( ($initrdlen + 3) & -4 )) $bs
     1.9  	fi
    1.10  
    1.11  	# Output boot sector + setup + cmdline