added post-pci pass
authorGreg Watson <jarrah@users.sourceforge.net>
Wed, 23 Jul 2003 21:38:02 +0000 (21:38 +0000)
committerGreg Watson <jarrah@users.sourceforge.net>
Wed, 23 Jul 2003 21:38:02 +0000 (21:38 +0000)
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1019 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/boot/hardwaremain.c
src/include/device/chip.h

index 4bb23fde8038527c2e642f0a424b6693bb0de394..ff0909fd977c57506157beec56bfb06289ade1d2 100644 (file)
@@ -166,7 +166,7 @@ void hardwaremain(int boot_complete)
                hard_reset();
        }
 #endif
-       init_timer();
+       init_timer(); /* needs to be moved into static configuration */
        CONFIGURE(CONF_PASS_PRE_PCI);
 
        /* pick how to scan the bus. This is first so we can get at memory size. */
@@ -190,6 +190,8 @@ void hardwaremain(int boot_complete)
        dev_initialize();
        post_code(0x89);
 
+       CONFIGURE(CONF_PASS_POST_PCI);
+
        mem = get_ramsize();
        post_code(0x70);
        totalmem = 0;
@@ -220,7 +222,7 @@ void hardwaremain(int boot_complete)
         */
        lb_mem = write_tables(mem, processor_map);
 
-       CONFIGURE(CONF_PASS_PRE_PCI);
+       CONFIGURE(CONF_PASS_PRE_BOOT);
 
        elfboot(lb_mem);
 }
index 978af8157f57b32860027841a3195b3613f74009..448665ecd0bffb642c09d5bf4595cd4e77083257 100644 (file)
@@ -34,6 +34,7 @@ enum chip_pass {
        CONF_PASS_PRE_DEVICE_CONFIGURE,
        CONF_PASS_PRE_DEVICE_ENABLE,
        CONF_PASS_PRE_DEVICE_INITIALIZE,
+       CONF_PASS_POST_PCI,
        CONF_PASS_PRE_BOOT
 };