diff options
author | Sean Anderson <sean.anderson@seco.com> | 2022-03-22 16:59:14 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-01 15:03:13 -0400 |
commit | b10f724807312a996100c7c4b779d320ed40d573 (patch) | |
tree | 3a06ddbdb20e62cf443cf24d6d445a108b0b62a8 /include/semihosting.h | |
parent | c8f4cc9590c480f962451344a4c795b1503c1359 (diff) | |
download | u-boot-b10f724807312a996100c7c4b779d320ed40d573.zip u-boot-b10f724807312a996100c7c4b779d320ed40d573.tar.gz u-boot-b10f724807312a996100c7c4b779d320ed40d573.tar.bz2 |
arm: smh: Export semihosting functions
This exports semihosting functions for use in other files. The header is
in include/ and not arm/include/asm because I anticipate that RISC-V may
want to add their own implementation at some point.
smh_len_fd has been renamed to smh_flen to more closely match the
semihosting spec.
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Diffstat (limited to 'include/semihosting.h')
-rw-r--r-- | include/semihosting.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/semihosting.h b/include/semihosting.h new file mode 100644 index 0000000..3843863 --- /dev/null +++ b/include/semihosting.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (C) 2022 Sean Anderson <sean.anderson@seco.com> + */ + +#ifndef _SEMIHOSTING_H +#define _SEMIHOSTING_H + +long smh_open(const char *fname, char *modestr); +long smh_read(long fd, void *memp, size_t len); +long smh_close(long fd); +long smh_flen(long fd); + +#endif /* _SEMIHOSTING_H */ |