]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
arc: introduce separate section for interrupt vector table
authorIgor Guryanov <guryanov@synopsys.com>
Wed, 24 Dec 2014 14:17:11 +0000 (17:17 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Thu, 15 Jan 2015 19:38:42 +0000 (22:38 +0300)
commit20a58ac0d8e09d0bf1a74c6b68fea22784512b51
treedf909ca56ce3685deec112fdda3e723e77c09262
parentdcb431e723f132d0df63fb1e711042a6bbfc3a6a
arc: introduce separate section for interrupt vector table

Even though existing implementation works fine in preparation to
submission of ARCv2 architecture we need this change.

In case of ARCv2 interrupt vector table consists of just addresses
of corresponding handlers. And if those addresses will be in .text
section then assembler will encode them as everything in .text section
as middle-endian and then on real execution CPU will read swapped
addresses and will jump into the wild.

Once introduced new section is situated so .text section remains the
first which allows us to use common linker option for linking everything
to a specified CONFIG_SYS_TEXT_BASE.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Igor Guryanov <guryanov@synopsys.com>
arch/arc/Makefile
arch/arc/cpu/arc700/Makefile
arch/arc/cpu/arc700/start.S
arch/arc/cpu/arc700/u-boot.lds
arch/arc/include/asm/sections.h
arch/arc/lib/relocate.c
arch/arc/lib/sections.c