Skip to contentSkip to conversation

Wrong cache flush function used in arch/arm/boot/compressed/head.S?

DISCUSSION Sascha Hauer 2 participants 3 messages Mar 12, 2010 – Mar 15, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

0e056f20f18d0efa5da920f3cf8532adc56d5779 contains the following hunk:

.word 0x00060000 @ ARMv5TEJ
.word 0x000f0000
- b __armv4_mmu_cache_on
- b __armv4_mmu_cache_off
- b __armv5tej_mmu_cache_flush
+ W(b) __armv4_mmu_cache_on
+ W(b) __armv4_mmu_cache_off
+ W(b) __armv4_mmu_cache_flush

Is this intentional? I do not see any problems in my kernel, but I use the same code in my bootloader and it doesn't seem to work correctly on my arm926 based system.

Sascha

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#1 lore raw
Quoted 11 lines · Sascha Hauer

0e056f20f18d0efa5da920f3cf8532adc56d5779 contains the following hunk:

                .word   0x00060000              @ ARMv5TEJ
                .word   0x000f0000
(quoted diff) +3 -3
-               b       __armv4_mmu_cache_on
-               b       __armv4_mmu_cache_off
-               b       __armv5tej_mmu_cache_flush
+               W(b)    __armv4_mmu_cache_on
+               W(b)    __armv4_mmu_cache_off
+               W(b)    __armv4_mmu_cache_flush
Quoted 3 lines

Is this intentional? I do not see any problems in my kernel, but I use the same code in my bootloader and it doesn't seem to work correctly on my arm926 based system.

It wasn't intentional. I think I got it wrong when trying to solve a merge conflict and I just added the original hunk.

Thanks.

Signature · 1 line
Catalin
#2 lore raw
Quoted 12 lines · Catalin Marinas
Quoted 11 lines · Sascha Hauer

0e056f20f18d0efa5da920f3cf8532adc56d5779 contains the following hunk:

                .word   0x00060000              @ ARMv5TEJ
                .word   0x000f0000
(quoted diff) +3 -3
-               b       __armv4_mmu_cache_on
-               b       __armv4_mmu_cache_off
-               b       __armv5tej_mmu_cache_flush
+               W(b)    __armv4_mmu_cache_on
+               W(b)    __armv4_mmu_cache_off
+               W(b)    __armv4_mmu_cache_flush
Quoted 6 lines
Quoted 3 lines

Is this intentional? I do not see any problems in my kernel, but I use the same code in my bootloader and it doesn't seem to work correctly on my arm926 based system.

It wasn't intentional. I think I got it wrong when trying to solve a merge conflict and I just added the original hunk.

Ok, I just sent a patch to the patch system.

Sascha

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |