aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcibios.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-01-03 18:33:00 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-01-03 18:33:00 -0500
commit7c1b18655e6a450b5f1270a956c7146f821a2c23 (patch)
treedb1c8dd00708ea798f882aaaad07b9daeb2a4e47 /src/pcibios.c
parentf9b25d306b66bbafdbf9656103b41fbb83836d03 (diff)
downloadseabios-7c1b18655e6a450b5f1270a956c7146f821a2c23.tar.gz
Reduce #ifs by weeding out some cross-chunk function definitions.
Reduce the need for placing #if guards around functions that are marked as VISIBLE in another code chunk by declaring the functions as "weak" when they are not needed. It's still necessary to ensure that no C code references the data from a different chunk (or an -fwhole-program compile might try to keep a local reference).
Diffstat (limited to 'src/pcibios.c')
-rw-r--r--src/pcibios.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/pcibios.c b/src/pcibios.c
index 2e44c015..a23248b4 100644
--- a/src/pcibios.c
+++ b/src/pcibios.c
@@ -202,7 +202,6 @@ handle_1ab1(struct bregs *regs)
* 32bit interface
****************************************************************/
-#if MODE16 == 0 && MODESEGMENT == 1
// Entry point for 32bit pci bios functions.
void VISIBLE32SEG
handle_pcibios32(struct bregs *regs)
@@ -210,7 +209,6 @@ handle_pcibios32(struct bregs *regs)
debug_enter(regs, DEBUG_HDL_pcibios32);
handle_1ab1(regs);
}
-#endif
struct bios32_s {
u32 signature;