From: Kevin O'Connor Date: Mon, 7 Apr 2014 19:55:23 +0000 (-0400) Subject: Move PirAddr definition from pirtable.c to biostables.c. X-Git-Tag: rel-1.7.5-rc1~25 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=19646a4b51d41e44df17db6807cb7206c70629e3;p=seabios.git Move PirAddr definition from pirtable.c to biostables.c. Signed-off-by: Kevin O'Connor --- diff --git a/src/fw/biostables.c b/src/fw/biostables.c index 48325a4..b132734 100644 --- a/src/fw/biostables.c +++ b/src/fw/biostables.c @@ -17,6 +17,8 @@ #include "util.h" // copy_table #include "x86.h" // outb +struct pir_header *PirAddr VARFSEG; + static void copy_pir(void *pos) { diff --git a/src/fw/pirtable.c b/src/fw/pirtable.c index ee2659d..ded9143 100644 --- a/src/fw/pirtable.c +++ b/src/fw/pirtable.c @@ -9,8 +9,7 @@ #include "output.h" // dprintf #include "std/pirtable.h" // struct pir_header #include "string.h" // checksum - -struct pir_header *PirAddr VARFSEG; +#include "util.h" // PirAddr struct pir_table { struct pir_header pir; diff --git a/src/util.h b/src/util.h index 088437b..223d5c0 100644 --- a/src/util.h +++ b/src/util.h @@ -64,6 +64,7 @@ void handle_1586(struct bregs *regs); void acpi_setup(void); // fw/biostable.c +extern struct pir_header *PirAddr; extern struct rsdp_descriptor *RsdpAddr; extern u32 acpi_pm1a_cnt; void *find_acpi_rsdp(void); @@ -102,7 +103,6 @@ void pci_setup(void); void pci_resume(void); // fw/pirtable.c -extern struct pir_header *PirAddr; void pirtable_setup(void); // fw/shadow.c