arm-thumb2.patch 542 B

12345678910111213141516
  1. diff -Nur linux-4.9.94.orig/arch/arm/include/asm/assembler.h linux-4.9.94/arch/arm/include/asm/assembler.h
  2. --- linux-4.9.94.orig/arch/arm/include/asm/assembler.h 2018-04-13 18:48:37.000000000 +0100
  3. +++ linux-4.9.94/arch/arm/include/asm/assembler.h 2018-04-22 10:51:50.317450040 +0100
  4. @@ -192,10 +192,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