diff options
Diffstat (limited to 'bios_extract.c')
-rw-r--r-- | bios_extract.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bios_extract.c b/bios_extract.c index bd90bd4..32b5aab 100644 --- a/bios_extract.c +++ b/bios_extract.c @@ -87,6 +87,7 @@ static struct { } BIOSIdentification[] = { {"AMIBOOT ROM", "AMIBIOSC", AMI95Extract}, {"$ASUSAMI$", "AMIBIOSC", AMI95Extract}, + {"AMIEBBLK", "AMIBIOSC", AMI95Extract}, {"Award BootBlock", "= Award Decompression Bios =", AwardExtract}, {"Phoenix FirstBIOS", "BCPSEGMENT", PhoenixExtract}, {"PhoenixBIOS 4.0", "BCPSEGMENT", PhoenixExtract}, @@ -126,7 +127,8 @@ main(int argc, char *argv[]) argv[1], strerror(errno)); return 1; } - BIOSOffset = 0x100000 - FileLength; + + BIOSOffset = (0x100000 - FileLength) & 0xFFFFF; BIOSImage = mmap(NULL, FileLength, PROT_READ, MAP_PRIVATE, fd, 0); if (BIOSImage < 0) { |