[LinuxBIOS] [PATCH] fix resource end in K8 amdk8/northbridge.c

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Sat Sep 29 03:13:01 CEST 2007


On 29.09.2007 02:02, Rudolf Marek wrote:
> 
> This patch fixes the resource end in amdk8/northbridge.c
> 
> Signed-off-by: Rudolf Marek <r.marek at assembler.cz>

If this fixes resources going backwards, it is
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>

Can somebody please commit?

> 
> Rudolf
> 
> ------------------------------------------------------------------------
> 
> Index: src/northbridge/amd/amdk8/northbridge.c
> ===================================================================
> --- src/northbridge/amd/amdk8/northbridge.c	(revision 2776)
> +++ src/northbridge/amd/amdk8/northbridge.c	(working copy)
> @@ -562,7 +562,7 @@
>  	base  |= (resource->base >> 8) & 0xffffff00;
>  	base  |= 3;
>  	limit &= 0x00000048;
> -	limit |= ((resource->base + resource->size) >> 8) & 0xffffff00;
> +	limit |= (resource_end(resource) >> 8) & 0xffffff00;
>  	limit |= (resource->index & 3) << 4;
>  	limit |= (nodeid & 7);
>  	f1_write_config32(reg + 0x4, limit);
> 





More information about the coreboot mailing list