diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-10-27 16:17:48 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-10-28 10:52:21 +1100 |
commit | 3b4941b49323a3767840fc67023ffed85db21154 (patch) | |
tree | a5291f8de9f7c8c5a04a15f4f6ef79791ff593ea | |
parent | 452b5f85f0191a9c78e885a93af0e856d4793885 (diff) | |
download | skiboot-3b4941b49323a3767840fc67023ffed85db21154.zip skiboot-3b4941b49323a3767840fc67023ffed85db21154.tar.gz skiboot-3b4941b49323a3767840fc67023ffed85db21154.tar.bz2 |
add BUILD_ASSERT that reset_patch fits in area saved
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | core/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/init.c b/core/init.c index 9557f47..dbb381f 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(); } |