[SeaBIOS] [PATCH 3/5] Move PirAddr definition from pirtable.c to biostables.c.

Kevin O'Connor kevin at koconnor.net
Mon Apr 7 22:49:02 CEST 2014


Signed-off-by: Kevin O'Connor <kevin at koconnor.net>
---
 src/fw/biostables.c | 2 ++
 src/fw/pirtable.c   | 3 +--
 src/util.h          | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

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
-- 
1.9.0




More information about the SeaBIOS mailing list