From c2f23cc6edd7ee2dc6a07991312d44233080ae6b Mon Sep 17 00:00:00 2001 From: James Clarke Date: Sat, 1 Feb 2020 01:07:51 +0000 Subject: platform: Add Spike initial support This patch adds initial platform support Spike emulator. Signed-off-by: James Clarke Signed-off-by: Anup Patel Reviewed-by: Bin Meng Reviewed-by: Atish Patra --- include/sbi_utils/sys/htif.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/sbi_utils/sys/htif.h (limited to 'include/sbi_utils') diff --git a/include/sbi_utils/sys/htif.h b/include/sbi_utils/sys/htif.h new file mode 100644 index 00000000..42903e81 --- /dev/null +++ b/include/sbi_utils/sys/htif.h @@ -0,0 +1,19 @@ +/* + * SPDX-License-Identifier: BSD-3-Clause + * + * Copyright (c) 2010-2020, The Regents of the University of California + * (Regents). All Rights Reserved. + */ + +#ifndef __SYS_HTIF_H__ +#define __SYS_HTIF_H__ + +#include + +void htif_putc(char ch); + +int htif_getc(void); + +int htif_system_down(u32 type); + +#endif -- cgit v1.3.1