diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2014-12-15 11:05:56 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-12-29 07:44:06 -0500 |
commit | 4e1ef15091b6f42ac13c22e3acc45a9bd9cce852 (patch) | |
tree | ef5a316a28cc65bea10dafb60255a7a5bcb4deea /arch/arm/include | |
parent | 50b56394307f76afe5ed1fac885e6d792d432c58 (diff) | |
download | u-boot-imx-4e1ef15091b6f42ac13c22e3acc45a9bd9cce852.zip u-boot-imx-4e1ef15091b6f42ac13c22e3acc45a9bd9cce852.tar.gz u-boot-imx-4e1ef15091b6f42ac13c22e3acc45a9bd9cce852.tar.bz2 |
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>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/semihosting.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/semihosting.h b/arch/arm/include/asm/semihosting.h index e59b44e..835ca7e 100644 --- a/arch/arm/include/asm/semihosting.h +++ b/arch/arm/include/asm/semihosting.h @@ -12,6 +12,6 @@ * code for more information. */ int smh_load(const char *fname, void *memp, int avail, int verbose); -int smh_len(const char *fname); +long smh_len(const char *fname); #endif /* __SEMIHOSTING_H__ */ |