diff mbox

add BUILD_ASSERT that reset_patch fits in area saved

Message ID 1477545468-4370-1-git-send-email-stewart@linux.vnet.ibm.com
State Accepted
Headers show

Commit Message

Stewart Smith Oct. 27, 2016, 5:17 a.m. UTC
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
---
 core/init.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/core/init.c b/core/init.c
index 9557f4769a93..dbb381f8dd17 100644
--- a/core/init.c
+++ b/core/init.c
@@ -658,6 +658,7 @@  void copy_exception_vectors(void)
 	 * the boot flag used by CPUs still potentially entering
 	 * skiboot.
 	 */
+	BUILD_ASSERT((&reset_patch_end - &reset_patch_start) < 0x1f00);
 	memcpy((void *)0x100, (void *)(SKIBOOT_BASE + 0x100), 0x1f00);
 	sync_icache();
 }