diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-04-07 02:30:57 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-04-07 02:30:57 +0000 |
commit | c02c34e886afda101b522a9be34e6a7c7c4217cd (patch) | |
tree | 1ca66655c28932f0192deded855d60e099775e1d /src/mainboard | |
parent | 6c214693aa5439dcaf3f0d5b2802f1b2d931ad25 (diff) | |
download | coreboot-c02c34e886afda101b522a9be34e6a7c7c4217cd.tar.xz |
fix epia-m700 compilation, and remove more warnings.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5366 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/artecgroup/dbe61/mainboard.c | 2 | ||||
-rw-r--r-- | src/mainboard/intel/eagleheights/acpi_tables.c | 2 | ||||
-rw-r--r-- | src/mainboard/intel/eagleheights/fadt.c | 4 | ||||
-rw-r--r-- | src/mainboard/intel/eagleheights/mainboard.c | 3 | ||||
-rw-r--r-- | src/mainboard/intel/eagleheights/mptable.c | 2 | ||||
-rw-r--r-- | src/mainboard/intel/xe7501devkit/mptable.c | 2 |
6 files changed, 8 insertions, 7 deletions
diff --git a/src/mainboard/artecgroup/dbe61/mainboard.c b/src/mainboard/artecgroup/dbe61/mainboard.c index d88190803b..59312dc146 100644 --- a/src/mainboard/artecgroup/dbe61/mainboard.c +++ b/src/mainboard/artecgroup/dbe61/mainboard.c @@ -28,7 +28,7 @@ #include "../../../southbridge/amd/cs5536/cs5536.h" #include "chip.h" -static void init_gpio() +static void init_gpio(void) { msr_t msr; printk(BIOS_DEBUG, "Checking GPIO module...\n"); diff --git a/src/mainboard/intel/eagleheights/acpi_tables.c b/src/mainboard/intel/eagleheights/acpi_tables.c index da642b636f..7a941a5eb6 100644 --- a/src/mainboard/intel/eagleheights/acpi_tables.c +++ b/src/mainboard/intel/eagleheights/acpi_tables.c @@ -91,7 +91,6 @@ unsigned long acpi_fill_madt(unsigned long current) { unsigned int irq_start = 0; device_t dev = 0; - struct resource* res = NULL; unsigned char bus_isa; /* Local Apic */ @@ -141,7 +140,6 @@ unsigned long acpi_fill_srat(unsigned long current) unsigned long write_acpi_tables(unsigned long start) { unsigned long current; - int i; acpi_rsdp_t *rsdp; acpi_rsdt_t *rsdt; acpi_hpet_t *hpet; diff --git a/src/mainboard/intel/eagleheights/fadt.c b/src/mainboard/intel/eagleheights/fadt.c index 60b6c6b148..f23c727e7b 100644 --- a/src/mainboard/intel/eagleheights/fadt.c +++ b/src/mainboard/intel/eagleheights/fadt.c @@ -115,9 +115,9 @@ void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt) fadt->res3 = 0; fadt->res4 = 0; fadt->res5 = 0; - fadt->x_firmware_ctl_l = facs; + fadt->x_firmware_ctl_l = (u32)facs; fadt->x_firmware_ctl_h = 0; - fadt->x_dsdt_l = dsdt; + fadt->x_dsdt_l = (u32)dsdt; fadt->x_dsdt_h = 0; fadt->x_pm1a_evt_blk.space_id = 1; diff --git a/src/mainboard/intel/eagleheights/mainboard.c b/src/mainboard/intel/eagleheights/mainboard.c index 8ec131fc18..7974dbc8db 100644 --- a/src/mainboard/intel/eagleheights/mainboard.c +++ b/src/mainboard/intel/eagleheights/mainboard.c @@ -21,10 +21,13 @@ #include <device/device.h> +#include <boot/tables.h> +#include <arch/coreboot_tables.h> #include "chip.h" int add_mainboard_resources(struct lb_memory *mem) { + return 0; } struct chip_operations mainboard_ops = { diff --git a/src/mainboard/intel/eagleheights/mptable.c b/src/mainboard/intel/eagleheights/mptable.c index f55ee400cc..d2ff79870b 100644 --- a/src/mainboard/intel/eagleheights/mptable.c +++ b/src/mainboard/intel/eagleheights/mptable.c @@ -75,7 +75,7 @@ static void *smp_write_config_table(void *v) dev = dev_find_slot(0, PCI_DEVFN(0x1F,0)); res = find_resource(dev, RCBA); if (!res) { - return; + return NULL; } rcba = res->base; diff --git a/src/mainboard/intel/xe7501devkit/mptable.c b/src/mainboard/intel/xe7501devkit/mptable.c index 1a0567c8a4..6bc85929b5 100644 --- a/src/mainboard/intel/xe7501devkit/mptable.c +++ b/src/mainboard/intel/xe7501devkit/mptable.c @@ -69,7 +69,7 @@ static void xe7501devkit_register_ioapics(struct mp_config_table *mc) smp_write_ioapic(mc, IOAPIC_P64H2_1_BUS_B, P64H2_IOAPIC_VERSION, res->base); } -void xe7501devkit_register_interrupts(struct mp_config_table *mc) +static void xe7501devkit_register_interrupts(struct mp_config_table *mc) { // Chipset PCI bus // Type Trigger | Polarity Bus ID IRQ APIC ID PIN# |