Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Linus Walleij's avatar
    50b56394
    arm: semihosting: staticize internal functions · 50b56394
    Linus Walleij authored
    
    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: default avatarSteve Rae <srae@broadcom.com>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    50b56394
    History
    arm: semihosting: staticize internal functions
    Linus Walleij authored
    
    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: default avatarSteve Rae <srae@broadcom.com>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>