[Skiboot] [PATCH] add BUILD_ASSERT that reset_patch fits in area saved
Stewart Smith
stewart at linux.vnet.ibm.com
Thu Oct 27 16:17:48 AEDT 2016
Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
core/init.c | 1 +
1 file changed, 1 insertion(+)
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();
}
--
2.1.4
More information about the Skiboot
mailing list