u-boot-brain/arch
Vadzim Dambrouski 432a6241bd arm: add support for semihosting for ARMv7M targets
If you enable CONFIG_SEMIHOSTING for STM32F429 target, you will get compile
error looking like this:

arch/arm/lib/semihosting.c: In function 'smh_read':
{standard input}: Assembler messages:
{standard input}:34: Error: invalid swi expression
{standard input}:34: Error: value of 1193046 too large for field of 2 bytes at 0
scripts/Makefile.build:277: recipe for target 'arch/arm/lib/semihosting.o' failed

The source of the problem is "svc #0x123456" instruction. This instruction
can not be encoded using Thumb2 instruction set used by ARMv7M CPUs.
ARM documentation suggests using "bkpt #0xAB" instruction instead [1].
This patch fixes compile errors and adds support for semihosting for
STM32F429 or any other ARMv7M target.
This change was sested on STM32F429-DISCOVERY board using OpenOCD and
"smhload" u-boot command.

[1] http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0471c/Bgbjhiea.html

Signed-off-by: Vadzim Dambrouski <pftbest@gmail.com>
2015-11-10 09:45:33 +01:00
..
arc arc: Use the generic bitops headers 2015-11-05 10:52:29 -05:00
arm arm: add support for semihosting for ARMv7M targets 2015-11-10 09:45:33 +01:00
avr32 avr32: Use the generic bitops headers 2015-11-05 10:52:31 -05:00
blackfin blackfin: Use the generic bitops headers 2015-11-05 10:52:06 -05:00
m68k m68k: Use the generic bitops headers 2015-11-05 10:52:04 -05:00
microblaze microblaze: Use the generic bitops headers 2015-11-05 10:52:11 -05:00
mips Merge branch 'master' of git://git.denx.de/u-boot-mips 2015-11-06 09:17:17 -05:00
nds32 nds32: Use the generic bitops headers 2015-11-05 10:52:21 -05:00
nios2 Merge branch 'master' of git://git.denx.de/u-boot-nios 2015-11-06 09:21:33 -05:00
openrisc openrisc: Use the generic bitops headers 2015-11-05 10:52:19 -05:00
powerpc powerpc: Remove __ilog2_u64 and ffs4 from bitops 2015-11-05 16:47:05 -05:00
sandbox sandbox: Use the generic bitops headers 2015-11-05 10:52:14 -05:00
sh sh: Use the generic bitops headers 2015-11-05 10:52:09 -05:00
sparc sparc: Use the generic bitops headers 2015-11-05 10:52:16 -05:00
x86 x86: Use the generic bitops headers 2015-11-05 10:52:01 -05:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig arm, powerpc: select SYS_GENERIC_BOARD 2015-10-24 13:50:38 -04:00