summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuc Verhaegen <libv@skynet.be>2009-12-17 15:17:36 +0100
committerLuc Verhaegen <libv@skynet.be>2009-12-17 15:17:36 +0100
commitdd9391654abd19512013d918c6312d2c512bcee7 (patch)
treed25b1e1d165c170df953239090b37c6b08564c87
parentfec24c92f7008661593b2382755f677011af54a8 (diff)
Add Phoenix Trustedcore complaint.
ENODECOMPROUTINEYET :)
-rw-r--r--bios_extract.c1
-rw-r--r--bios_extract.h4
-rw-r--r--phoenix.c13
3 files changed, 17 insertions, 1 deletions
diff --git a/bios_extract.c b/bios_extract.c
index b6fa12d..bd90bd4 100644
--- a/bios_extract.c
+++ b/bios_extract.c
@@ -90,6 +90,7 @@ static struct {
{"Award BootBlock", "= Award Decompression Bios =", AwardExtract},
{"Phoenix FirstBIOS", "BCPSEGMENT", PhoenixExtract},
{"PhoenixBIOS 4.0", "BCPSEGMENT", PhoenixExtract},
+ {"Phoenix TrustedCore", "BCPSEGMENT", PhoenixTrustedExtract},
{NULL, NULL, NULL},
};
diff --git a/bios_extract.h b/bios_extract.h
index c8bc764..4d38e62 100644
--- a/bios_extract.h
+++ b/bios_extract.h
@@ -33,7 +33,9 @@ Bool AMI95Extract(unsigned char *BIOSImage, int BIOSLength, int BIOSOffset,
/* phoenix.c */
Bool PhoenixExtract(unsigned char *BIOSImage, int BIOSLength, int BIOSOffset,
uint32_t Offset1, uint32_t Offset2);
-
+Bool PhoenixTrustedExtract(unsigned char *BIOSImage, int BIOSLength,
+ int BIOSOffset, uint32_t Offset1,
+ uint32_t BCPSegmentOffset);
/* award.c */
Bool AwardExtract(unsigned char *BIOSImage, int BIOSLength, int BIOSOffset,
uint32_t Offset1, uint32_t Offset2);
diff --git a/phoenix.c b/phoenix.c
index c2fe10a..dd630a1 100644
--- a/phoenix.c
+++ b/phoenix.c
@@ -239,3 +239,16 @@ PhoenixExtract(unsigned char *BIOSImage, int BIOSLength, int BIOSOffset,
return TRUE;
}
+
+/*
+ *
+ */
+Bool
+PhoenixTrustedExtract(unsigned char *BIOSImage, int BIOSLength, int BIOSOffset,
+ uint32_t Offset1, uint32_t BCPSegmentOffset)
+{
+ fprintf(stderr, "ERROR: Phoenix TrustedCore images are not supported.\n");
+ printf("Feel free to RE the decompression routine :)\n");
+
+ return FALSE;
+}