summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2022-11-03 18:52:51 -0600
committerMartin L Roth <gaumless@gmail.com>2022-11-12 22:53:14 +0000
commit60293e9b1f4cec45c28d7de3aa42e35faebe4b99 (patch)
tree56933cbcf30db1f72b7fa1119f1bc2d3b2f12ebe /src/lib
parent9a8667a841f14af61f50a3fba4e0734f24ff24b2 (diff)
downloadcoreboot-60293e9b1f4cec45c28d7de3aa42e35faebe4b99.tar.gz
coreboot-60293e9b1f4cec45c28d7de3aa42e35faebe4b99.tar.bz2
coreboot-60293e9b1f4cec45c28d7de3aa42e35faebe4b99.zip
lib/ramtest.c: Update ram failure post code
coreboot already has a ram failure post code defined, but the ram test functions weren't using it, and were using 0xea instead. This changes those failures to display 0xe3, the value defined in post_codes.h by POST_RAM_FAILURE. Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: I21ef196e48ff37ffe320b575d6de66b43997e7eb Reviewed-on: https://review.coreboot.org/c/coreboot/+/69202 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ramtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ramtest.c b/src/lib/ramtest.c
index d6f958f1607f..7ac141a39263 100644
--- a/src/lib/ramtest.c
+++ b/src/lib/ramtest.c
@@ -110,7 +110,7 @@ static int ram_bitset_nodie(uintptr_t start)
}
}
if (failures) {
- post_code(0xea);
+ post_code(POST_RAM_FAILURE);
printk(BIOS_DEBUG, "\nDRAM did _NOT_ verify!\n");
return 1;
}
@@ -200,7 +200,7 @@ void quick_ram_check_or_die(uintptr_t dst)
write_phys(dst, backup);
if (fail) {
- post_code(0xea);
+ post_code(POST_RAM_FAILURE);
die("RAM INIT FAILURE!\n");
}
phys_memory_barrier();