diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-06-09 13:36:45 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-06-09 13:36:45 -0400 |
commit | bfa02cd540e93ad1df46b3a599e121acf7a36c0a (patch) | |
tree | b63176339c1f3aa808a22c04d419610539fa908b /src/pcibios.c | |
parent | 4d053ebe8119cdaf2a0c045104e8b4d2e35cfefa (diff) | |
download | seabios-bfa02cd540e93ad1df46b3a599e121acf7a36c0a.tar.gz |
Minor - Replace PirOffset with PirAddr.
Technically, the PIR table could be placed at 0xf0000, which would
result in a PirOffset=0, which would confuse the code. So, use an
absolute address (PirAddr) instead. This also matches what the ACPI
and SMBIOS code does.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/pcibios.c')
-rw-r--r-- | src/pcibios.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pcibios.c b/src/pcibios.c index d10cdfd2..e4bd7c05 100644 --- a/src/pcibios.c +++ b/src/pcibios.c @@ -133,11 +133,12 @@ handle_1ab10d(struct bregs *regs) static void handle_1ab10e(struct bregs *regs) { - struct pir_header *pirtable_g = (void*)(GET_GLOBAL(PirOffset) + 0); - if (! pirtable_g) { + struct pir_header *pirtable_gf = GET_GLOBAL(PirAddr); + if (! pirtable_gf) { set_code_invalid(regs, RET_FUNC_NOT_SUPPORTED); return; } + struct pir_header *pirtable_g = GLOBALFLAT2GLOBAL(pirtable_gf); struct param_s { u16 size; |