[coreboot] [PATCH] Fix zeroes decompression algo

Stefan Reinauer stepan at coresystems.de
Sat Feb 16 15:40:17 CET 2008


* Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net> [080216 13:55]:
> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
 
Acked-by: Stefan Reinauer <stepan at coresystems.de>


> Index: LinuxBIOSv3-zerofixup/lib/lar.c
> ===================================================================
> --- LinuxBIOSv3-zerofixup/lib/lar.c	(Revision 604)
> +++ LinuxBIOSv3-zerofixup/lib/lar.c	(Arbeitskopie)
> @@ -172,7 +172,7 @@
>  #endif
>  	/* zeroes */
>  	if (archive->compression == 3) {
> -		memset(archive->start, 0, archive->reallen);
> +		memset(where, 0, archive->reallen);
>  		return 0;
>  	}
>  	printk(BIOS_INFO, "LAR: Compression algorithm #%i not supported!\n", archive->compression);
> Index: LinuxBIOSv3-zerofixup/util/lar/stream.c
> ===================================================================
> --- LinuxBIOSv3-zerofixup/util/lar/stream.c	(Revision 604)
> +++ LinuxBIOSv3-zerofixup/util/lar/stream.c	(Arbeitskopie)
> @@ -148,7 +148,6 @@
>  			continue;
>  		}
>  		thisalgo = zeroes;
> -		thisalgo = algo;
>  		if (verbose())
>  			fprintf(stderr,  "New section addr %#x size %#x\n",
>  			(u32)shdr[i].sh_addr, (u32)shdr[i].sh_size);
> 
> 
> -- 
> http://www.hailfinger.org/
> 
> 
> -- 
> coreboot mailing list
> coreboot at coreboot.org
> http://www.coreboot.org/mailman/listinfo/coreboot
> 

-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866




More information about the coreboot mailing list