eric patch

1. x86_setup_mtrr take address bit.
        2. generic ht, pcix, pcie beidge...
        3. scan bus and reset_bus
        4. ht read ctrl to decide if the ht chain
           is ready
        5. Intel e7520 and e7525 support
        6. new ich5r support
        7. intel sb 6300 support.

yhlu patch
	1. split x86_setup_mtrrs to fixed and var
	2. if (resource->flags & IORESOURCE_FIXED ) return; in device.c pick_largest_resource
	3. in_conherent.c K8_SCAN_PCI_BUS


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1982 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Yinghai Lu
2005-07-08 02:49:49 +00:00
parent 14cde9e96a
commit 13f1c2af8b
315 changed files with 30254 additions and 1952 deletions

View File

@@ -9,9 +9,7 @@ object memcmp.o
object memmove.o
object malloc.o
object delay.o
if HAVE_FALLBACK_BOOT
object fallback_boot.o
end
object fallback_boot.o
object compute_ip_checksum.o
object version.o
# Force version.o to recompile every time

View File

@@ -4,16 +4,19 @@
#include <console/console.h>
#endif
/* Assume 8 bits per byte */
#define CHAR_BIT 8
unsigned long log2(unsigned long x)
{
// assume 8 bits per byte.
unsigned long i = 1 << (sizeof(x)*8 - 1);
unsigned long pow = sizeof(x) * 8 - 1;
unsigned long i = 1ULL << (sizeof(x)* CHAR_BIT - 1ULL);
unsigned long pow = sizeof(x) * CHAR_BIT - 1ULL;
if (! x) {
#ifdef DEBUG_LOG2
printk_warning("%s called with invalid parameter of 0\n",
__FUNCTION__);
__func__);
#endif
return -1;
}

View File

@@ -1,9 +1,12 @@
#include <console/console.h>
#include <part/fallback_boot.h>
#include <part/watchdog.h>
#include <pc80/mc146818rtc.h>
#include <arch/io.h>
void boot_successful(void)
#if HAVE_FALLBACK_BOOT == 1
void set_boot_successful(void)
{
/* Remember I succesfully booted by setting
* the initial boot direction
@@ -23,3 +26,13 @@ void boot_successful(void)
byte &= 0x0f;
outb(byte, RTC_PORT(1));
}
#endif
void boot_successful(void)
{
/* Remember this was a successful boot */
set_boot_successful();
/* turn off the boot watchdog */
watchdog_off();
}