diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/boot/compressed/head.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S index 53dd5da84f8a..d1fd1cfca9c2 100644 --- a/arch/arm/boot/compressed/head.S +++ b/arch/arm/boot/compressed/head.S | |||
@@ -216,9 +216,10 @@ restart: adr r0, LC0 | |||
216 | * r9 = size of decompressed image | 216 | * r9 = size of decompressed image |
217 | * r10 = end of this image, including bss/stack/malloc space if non XIP | 217 | * r10 = end of this image, including bss/stack/malloc space if non XIP |
218 | * We basically want: | 218 | * We basically want: |
219 | * r4 >= r10 -> OK | 219 | * r4 - 16k page directory >= r10 -> OK |
220 | * r4 + image length <= current position (pc) -> OK | 220 | * r4 + image length <= current position (pc) -> OK |
221 | */ | 221 | */ |
222 | add r10, r10, #16384 | ||
222 | cmp r4, r10 | 223 | cmp r4, r10 |
223 | bhs wont_overwrite | 224 | bhs wont_overwrite |
224 | add r10, r4, r9 | 225 | add r10, r4, r9 |