diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2009-03-05 04:33:36 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2009-03-05 04:33:36 -0500 |
commit | f7e989ab64f926e34bafea0752431e1fd6a618f3 (patch) | |
tree | b0c070d0701209ef9045e4fb5eada70afe945d19 /arch/blackfin | |
parent | 7acab7a9ca6b0c5b820f083424c57e6ac2031d9d (diff) |
Blackfin arch: make sure people do not set the kernel load address too high
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/mach-common/arch_checks.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/blackfin/mach-common/arch_checks.c b/arch/blackfin/mach-common/arch_checks.c index 98133b968f7b..b3a2e3fa15e3 100644 --- a/arch/blackfin/mach-common/arch_checks.c +++ b/arch/blackfin/mach-common/arch_checks.c | |||
@@ -62,3 +62,8 @@ | |||
62 | #if (CONFIG_BOOT_LOAD & 0x3) | 62 | #if (CONFIG_BOOT_LOAD & 0x3) |
63 | # error "The kernel load address must be 4 byte aligned" | 63 | # error "The kernel load address must be 4 byte aligned" |
64 | #endif | 64 | #endif |
65 | |||
66 | /* The entire kernel must be able to make a 24bit pcrel call to start of L1 */ | ||
67 | #if ((0xffffffff - L1_CODE_START + 1) + CONFIG_BOOT_LOAD) > 0x1000000 | ||
68 | # error "The kernel load address is too high; keep it below 10meg for safety" | ||
69 | #endif | ||