Author: uwe
Date: 2007-05-11 01:59:20 +0200 (Fri, 11 May 2007)
New Revision: 2661

Modified:
   trunk/LinuxBIOSv2/src/northbridge/intel/i440bx/northbridge.c
Log:
Fixup the 440BX northbridge.c (self-ack as this wasn't working anyway).

Signed-off-by: Uwe Hermann <[EMAIL PROTECTED]>
Acked-by: Uwe Hermann <[EMAIL PROTECTED]>



Modified: trunk/LinuxBIOSv2/src/northbridge/intel/i440bx/northbridge.c
===================================================================
--- trunk/LinuxBIOSv2/src/northbridge/intel/i440bx/northbridge.c        
2007-05-10 23:53:11 UTC (rev 2660)
+++ trunk/LinuxBIOSv2/src/northbridge/intel/i440bx/northbridge.c        
2007-05-10 23:59:20 UTC (rev 2661)
@@ -96,6 +96,7 @@
 
         pci_tolm = find_pci_tolm(&dev->link[0]);
        mc_dev = dev->link[0].children;
+
        if (mc_dev) {
                /* Figure out which areas are/should be occupied by RAM.
                 * This is all computed in kilobytes and converted to/from
@@ -114,6 +115,7 @@
                 */
                tomk = ((unsigned long)pci_read_config8(mc_dev, DRB7)) << 13; 
                printk_debug("Setting RAM size to %d MB\n", tomk >> 10);
+
                /* Compute the top of Low memory */
                tolmk = pci_tolm >> 10;
                if (tolmk >= tomk) {
@@ -121,17 +123,12 @@
                         */
                        tolmk = tomk;
                }
-               /* Write the ram configuration registers,
-                * preserving the reserved bits.
-                */
-               tolm_r = pci_read_config16(mc_dev, 0xc4);
-               tolm_r = ((tolmk >> 10) << 3) | (tolm_r & 0xf);
-               pci_write_config16(mc_dev, 0xc4, tolm_r);
 
                /* Report the memory regions */
                idx = 10;
                ram_resource(dev, idx++, 0, 640);
-               ram_resource(dev, idx++, 768, tolmk - 768);
+               // ram_resource(dev, idx++, 768, tolmk - 768);
+               ram_resource(dev, idx++, 1024, tolmk - 1024);
        }
        assign_resources(&dev->link[0]);
 }


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

Reply via email to