From 06993ee7295c81f71462616277624fbf8ebc8ec9 Mon Sep 17 00:00:00 2001 From: Asami Doi Date: Wed, 7 Aug 2019 13:40:53 +0900 Subject: lib: ramdetect: Register exception handlers for ARMv8 Register exception handlers to avoid a Synchronous External Abort that is raised when you try to access a non-memory address on ARMv8. An exception handler can jump over the faulting instruction. This is the feature only for QEMU/AArch64. Signed-off-by: Asami Doi Change-Id: I09a306ca307ba4027d9758c3debc2e7c844c66b8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/34774 Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel --- src/lib/ramdetect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/ramdetect.c') diff --git a/src/lib/ramdetect.c b/src/lib/ramdetect.c index 5416a580dd..2c83092ebc 100644 --- a/src/lib/ramdetect.c +++ b/src/lib/ramdetect.c @@ -19,7 +19,7 @@ #define OVERLAP(a, b, s, e) ((b) > (s) && (a) < (e)) -static int probe_mb(const uintptr_t dram_start, const uintptr_t size) +int __weak probe_mb(const uintptr_t dram_start, const uintptr_t size) { uintptr_t addr = dram_start + (size * MiB) - sizeof(uint32_t); static const uint32_t patterns[] = { -- cgit v1.2.3