1
0

arm-thumb2.patch 546 B

12345678910111213141516
  1. diff -Nur linux-4.15.17.orig/arch/arm/include/asm/assembler.h linux-4.15.17/arch/arm/include/asm/assembler.h
  2. --- linux-4.15.17.orig/arch/arm/include/asm/assembler.h 2018-04-12 11:31:21.000000000 +0100
  3. +++ linux-4.15.17/arch/arm/include/asm/assembler.h 2018-04-22 02:14:24.155580474 +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