summaryrefslogtreecommitdiff
path: root/src/northbridge
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2019-05-16 14:07:43 -0600
committerDuncan Laurie <dlaurie@chromium.org>2019-05-22 16:53:19 +0000
commitbb41aba0d8c3c3cbfee44b0f7267e78fb7d012ee (patch)
tree66c4acc7abb2d19c37dbe8d470a87d64a0637631 /src/northbridge
parent1835bf0fd4b77ab3eae1fb085be1667d13ed3144 (diff)
downloadcoreboot-bb41aba0d8c3c3cbfee44b0f7267e78fb7d012ee.tar.xz
post_code: add post code for invalid vendor binary
Add a new post code POST_INVALID_VENDOR_BINARY, used when coreboot fails to locate or validate a vendor supplied binary. BUG=b:124401932 BRANCH=sarien TEST=build coreboot for sarien and arcada platforms Change-Id: Ib1e359d4e8772c37922b1b779135e58c73bff6b4 Signed-off-by: Keith Short <keithshort@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32772 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'src/northbridge')
-rw-r--r--src/northbridge/intel/haswell/raminit.c3
-rw-r--r--src/northbridge/intel/sandybridge/raminit_mrc.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/northbridge/intel/haswell/raminit.c b/src/northbridge/intel/haswell/raminit.c
index 050dbd1ae6..c24bb67db7 100644
--- a/src/northbridge/intel/haswell/raminit.c
+++ b/src/northbridge/intel/haswell/raminit.c
@@ -166,7 +166,8 @@ void sdram_initialize(struct pei_data *pei_data)
default:
printk(BIOS_ERR, "MRC returned %x.\n", rv);
}
- die("Nonzero MRC return value.\n");
+ die_with_post_code(POST_INVALID_VENDOR_BINARY,
+ "Nonzero MRC return value.\n");
}
} else {
die("UEFI PEI System Agent not found.\n");
diff --git a/src/northbridge/intel/sandybridge/raminit_mrc.c b/src/northbridge/intel/sandybridge/raminit_mrc.c
index f032b8aefc..e88d356593 100644
--- a/src/northbridge/intel/sandybridge/raminit_mrc.c
+++ b/src/northbridge/intel/sandybridge/raminit_mrc.c
@@ -235,7 +235,8 @@ void sdram_initialize(struct pei_data *pei_data)
default:
printk(BIOS_ERR, "MRC returned %x.\n", rv);
}
- die("Nonzero MRC return value.\n");
+ die_with_post_code(POST_INVALID_VENDOR_BINARY,
+ "Nonzero MRC return value.\n");
}
} else {
die("UEFI PEI System Agent not found.\n");