]> Pileus Git - ~andy/linux/blobdiff - arch/arm/vfp/vfphw.S
ARM: Fix broken commit 0cc41e4a21d43 corrupting kernel messages
[~andy/linux] / arch / arm / vfp / vfphw.S
index dd5e56f95f3fbe3d03f7be90f1201a78a93ed568..8d10dc8a1e17b34776a366f4b71fcca68c21bf8a 100644 (file)
        .macro  DBGSTR, str
 #ifdef DEBUG
        stmfd   sp!, {r0-r3, ip, lr}
-       add     r0, pc, #4
+       ldr     r0, =1f
        bl      printk
-       b       1f
-       .asciz  KERN_DEBUG "VFP: \str\n"
-       .balign 4
-1:     ldmfd   sp!, {r0-r3, ip, lr}
+       ldmfd   sp!, {r0-r3, ip, lr}
+
+       .pushsection .rodata, "a"
+1:     .ascii  KERN_DEBUG "VFP: \str\n"
+       .byte   0
+       .previous
 #endif
        .endm
 
 #ifdef DEBUG
        stmfd   sp!, {r0-r3, ip, lr}
        mov     r1, \arg
-       add     r0, pc, #4
+       ldr     r0, =1f
        bl      printk
-       b       1f
-       .asciz  KERN_DEBUG "VFP: \str\n"
-       .balign 4
-1:     ldmfd   sp!, {r0-r3, ip, lr}
+       ldmfd   sp!, {r0-r3, ip, lr}
+
+       .pushsection .rodata, "a"
+1:     .ascii  KERN_DEBUG "VFP: \str\n"
+       .byte   0
+       .previous
 #endif
        .endm
 
        mov     r3, \arg3
        mov     r2, \arg2
        mov     r1, \arg1
-       add     r0, pc, #4
+       ldr     r0, =1f
        bl      printk
-       b       1f
-       .asciz  KERN_DEBUG "VFP: \str\n"
-       .balign 4
-1:     ldmfd   sp!, {r0-r3, ip, lr}
+       ldmfd   sp!, {r0-r3, ip, lr}
+
+       .pushsection .rodata, "a"
+1:     .ascii  KERN_DEBUG "VFP: \str\n"
+       .byte   0
+       .previous
 #endif
        .endm