mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
c8f4cc9590
commit
b10f724807
2 changed files with 20 additions and 5 deletions
14
include/semihosting.h
Normal file
14
include/semihosting.h
Normal file
|
@ -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 */
|
Loading…
Add table
Add a link
Reference in a new issue