projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7acab7a
)
Blackfin arch: make sure people do not set the kernel load address too high
author
Mike Frysinger
<vapier.adi@gmail.com>
Thu, 5 Mar 2009 09:33:36 +0000
(17:33 +0800)
committer
Bryan Wu
<cooloney@kernel.org>
Thu, 5 Mar 2009 09:33:36 +0000
(17:33 +0800)
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/mach-common/arch_checks.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/blackfin/mach-common/arch_checks.c
b/arch/blackfin/mach-common/arch_checks.c
index 98133b968f7b9eabab64d7f1e76d903fb3af2745..b3a2e3fa15e3077a64db6f5394941a4cde358514 100644
(file)
--- a/
arch/blackfin/mach-common/arch_checks.c
+++ b/
arch/blackfin/mach-common/arch_checks.c
@@
-62,3
+62,8
@@
#if (CONFIG_BOOT_LOAD & 0x3)
# error "The kernel load address must be 4 byte aligned"
#endif
+
+/* The entire kernel must be able to make a 24bit pcrel call to start of L1 */
+#if ((0xffffffff - L1_CODE_START + 1) + CONFIG_BOOT_LOAD) > 0x1000000
+# error "The kernel load address is too high; keep it below 10meg for safety"
+#endif