]> git.ipfire.org Git - people/ms/u-boot.git/commit
arm: semihosting: staticize internal functions
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Dec 2014 10:05:43 +0000 (11:05 +0100)
committerTom Rini <trini@ti.com>
Mon, 29 Dec 2014 12:44:06 +0000 (07:44 -0500)
commit50b56394307f76afe5ed1fac885e6d792d432c58
treee7eb7bcce675f61c5f09e83470555d18d1260daf
parent437b23e67fafa84dcc46a3f6b2d4e4bb7833c461
arm: semihosting: staticize internal functions

The semihosting code exposes internal file handle handling
functions to read(), open(), close() and get the length of
a certain file handle.

However the code using it is only interested in either
reading and entire named file into memory or getting the
file length of a file referred by name. No file handles
are used.

Thus make the file handle code internal to this file by
removing these functions from the semihosting header file
and staticize them.

This gives us some freedom to rearrange the semihosting
code without affecting the external interface.

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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/include/asm/semihosting.h
arch/arm/lib/semihosting.c