arm-thumb2.patch 546 B

12345678910111213141516
  1. diff -Nur linux-4.14.34.orig/arch/arm/include/asm/assembler.h linux-4.14.34/arch/arm/include/asm/assembler.h
  2. --- linux-4.14.34.orig/arch/arm/include/asm/assembler.h 2018-04-12 11:32:27.000000000 +0100
  3. +++ linux-4.14.34/arch/arm/include/asm/assembler.h 2018-04-21 17:29:06.424606334 +0100
  4. @@ -194,10 +194,9 @@
  5. */
  6. .irp c,,eq,ne,cs,cc,mi,pl,vs,vc,hi,ls,ge,lt,gt,le,hs,lo
  7. .macro badr\c, rd, sym
  8. -#ifdef CONFIG_THUMB2_KERNEL
  9. - adr\c \rd, \sym + 1
  10. -#else
  11. adr\c \rd, \sym
  12. +#ifdef CONFIG_THUMB2_KERNEL
  13. + orr\c \rd, \rd, 1
  14. #endif
  15. .endm
  16. .endr