arm: semihosting: fix up compile bugs
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Dec 2014 10:05:56 +0000 (11:05 +0100)
committerTom Rini <trini@ti.com>
Mon, 29 Dec 2014 12:44:06 +0000 (07:44 -0500)
commit4e1ef15091b6f42ac13c22e3acc45a9bd9cce852
treeef5a316a28cc65bea10dafb60255a7a5bcb4deea
parent50b56394307f76afe5ed1fac885e6d792d432c58
arm: semihosting: fix up compile bugs

There is currently a regression when using newer ARM64 compilers
for semihosting: the way long types are inferred from context
is no longer the same.

The semihosting runtime uses long and size_t, so use this
explicitly in the semihosting code and interface, and voila:
the code now works again.

Tested with aarch64-linux-gnu-gcc: Linaro GCC 4.9-2014.09.

Cc: Darwin Rambo <drambo@broadcom.com>
Cc: AKASHI Takahiro <takahiro.akashi@linaro.org>
Cc: Mark Hambleton <mark.hambleton@arm.com>
Cc: Tom Rini <trini@ti.com>
Acked-by: Steve Rae <srae@broadcom.com>
Suggested-by: Mark Hambleton <mark.hambleton@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/include/asm/semihosting.h
arch/arm/lib/semihosting.c