On Wed, 2007-05-09 at 13:54 +0100, Ceri Coburn wrote:
> Here is a patch for the 440bx RAM calculation size.  The top of RAM
> was being calculated incorrectly.  
> 
This patch didn't take correctly here, so I applied it manually and
created another patch.

(I can boot as far as "Northbridge prior to SDRAM init:" and then I
still get random hangs about this point.  Patch doesn't seem to break
anything here.  Since I'm hacking on my DFI P2XBL w/ w83977tf, I can't
easily test on my Tyan S1832DL with S1846 profile right now.)

--
Roger
http://www.eskimo.com/~roger/index.html
Key fingerprint = 8977 A252 2623 F567 70CD 1261 640F C963 1005 1D61

Wed May 9 07:49:17 PDT 2007
Fixed a bug within the 440bx RAM size calculation.  Since the DRB values
on the 440bx are 8MB units we need to shift left by 13 to get it into kb.

Signed-off-by: Ceri Coburn <[EMAIL PROTECTED]>
Signed-off-by: Roger Zauner <[EMAIL PROTECTED]>

Index: src/northbridge/intel/i440bx/northbridge.c
===================================================================
--- src/northbridge/intel/i440bx/northbridge.c	(revision 2643)
+++ src/northbridge/intel/i440bx/northbridge.c	(working copy)
@@ -112,7 +112,8 @@
 		 * the physical memory.  The units are ticks of 8MB
 		 * i.e. 1 means 8MB.
 		 */
-		tomk = ((unsigned long)pci_read_config8(mc_dev, DRB7)) << 15;
+		tomk = ((unsigned long)pci_read_config8(mc_dev, DRB7)) << 13; 
+		printk_debug("I would like to set RAM size to %dMB\n",tomk >> 10);
 		/* Compute the top of Low memory */
 		tolmk = pci_tolm >> 10;
 		if (tolmk >= tomk) {

-- 
linuxbios mailing list
[email protected]
http://www.linuxbios.org/mailman/listinfo/linuxbios

Reply via email to