[ARM] avoid mis-detecting some V7 cores in the decompressor
authorBrian Swetland <swetland@google.com>
Tue, 27 Jan 2009 01:15:49 +0000 (17:15 -0800)
committerColin Cross <ccross@android.com>
Thu, 30 Sep 2010 00:49:04 +0000 (17:49 -0700)
This allows kernel decompress to happen nearly instantly instead
of taking over 20 seconds.

Signed-off-by: Brian Swetland <swetland@google.com>
arch/arm/boot/compressed/head.S

index 1f939437865215f6566c40c593da179c2dc8b147..051b179c913538f7694209d319d634838f7d4f00 100644 (file)
@@ -637,6 +637,8 @@ proc_types:
 @              b       __arm6_mmu_cache_off
 @              b       __armv3_mmu_cache_flush
 
+#if !defined(CONFIG_CPU_V7)
+               /* This collides with some V7 IDs, preventing correct detection */
                .word   0x00000000              @ old ARM ID
                .word   0x0000f000
                mov     pc, lr
@@ -645,6 +647,7 @@ proc_types:
  THUMB(                nop                             )
                mov     pc, lr
  THUMB(                nop                             )
+#endif
 
                .word   0x41007000              @ ARM7/710
                .word   0xfff8fe00