diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2022-09-22 14:03:07 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2022-09-22 14:03:07 +0200 |
commit | ba48db8275730fbc512c0872ae426970a09b5619 (patch) | |
tree | f64154d20f3faada75a3b9ef2baeeff012dac76a /target/linux/patches/4.14.293/arm-thumb2.patch | |
parent | 56ede91e9f8f8211a6fc62cd5f56d95a76fec9a7 (diff) |
add support for STM32F746G-DISCO device
Tested with toolbox / simpleinit as userland.
FDPIC/FLAT support both successfully tested.
No LCD or Ethernet support.
Diffstat (limited to 'target/linux/patches/4.14.293/arm-thumb2.patch')
-rw-r--r-- | target/linux/patches/4.14.293/arm-thumb2.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/patches/4.14.293/arm-thumb2.patch b/target/linux/patches/4.14.293/arm-thumb2.patch new file mode 100644 index 000000000..d8d1f4984 --- /dev/null +++ b/target/linux/patches/4.14.293/arm-thumb2.patch @@ -0,0 +1,16 @@ +diff -Nur linux-4.14.34.orig/arch/arm/include/asm/assembler.h linux-4.14.34/arch/arm/include/asm/assembler.h +--- linux-4.14.34.orig/arch/arm/include/asm/assembler.h 2018-04-12 11:32:27.000000000 +0100 ++++ linux-4.14.34/arch/arm/include/asm/assembler.h 2018-04-21 17:29:06.424606334 +0100 +@@ -194,10 +194,9 @@ + */ + .irp c,,eq,ne,cs,cc,mi,pl,vs,vc,hi,ls,ge,lt,gt,le,hs,lo + .macro badr\c, rd, sym +-#ifdef CONFIG_THUMB2_KERNEL +- adr\c \rd, \sym + 1 +-#else + adr\c \rd, \sym ++#ifdef CONFIG_THUMB2_KERNEL ++ orr\c \rd, \rd, 1 + #endif + .endm + .endr |