From 32d5c52b5fb5830039b59f35b260c77d2ec79c4a Mon Sep 17 00:00:00 2001 From: Aurora Date: Mon, 10 Oct 2016 18:31:19 +0200 Subject: [PATCH] Reinstate this check --- source/exceptions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/exceptions.c b/source/exceptions.c index 21094f9..e31f31d 100644 --- a/source/exceptions.c +++ b/source/exceptions.c @@ -59,7 +59,7 @@ u32 installArm11Handlers(u32 *exceptionsPage, u32 stackAddress, u32 codeSetOffse u32 *mcuReboot; for(mcuReboot = exceptionsPage; *mcuReboot != 0xE3A0A0C2 && mcuReboot < endPos; mcuReboot++); - if(initFPU == endPos || freeSpace == endPos || mcuReboot == endPos) ret = 1; + if(initFPU == endPos || freeSpace == endPos || mcuReboot == endPos || *(u32 *)((u8 *)freeSpace + arm11_exceptions_bin_size - 36) != 0xFFFFFFFF) ret = 1; else { initFPU += 3;