summaryrefslogtreecommitdiffstats
path: root/bsps
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-06-22 11:00:01 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-06-27 08:58:17 +0200
commit380243627b4043227cbc2fc0803b20d2a09e6490 (patch)
treefbdedbeb6f7e18aefece3fc67d517a7788cda638 /bsps
parentbsp/riscv: Add BSP options to define RAM region (diff)
downloadrtems-380243627b4043227cbc2fc0803b20d2a09e6490.tar.bz2
bsp/riscv: Fix some warnings
Update #3444.
Diffstat (limited to 'bsps')
-rw-r--r--bsps/riscv/riscv/console/console-io.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/bsps/riscv/riscv/console/console-io.c b/bsps/riscv/riscv/console/console-io.c
index a300e11753..6fb5705467 100644
--- a/bsps/riscv/riscv/console/console-io.c
+++ b/bsps/riscv/riscv/console/console-io.c
@@ -47,7 +47,7 @@ volatile uint64_t fromhost __attribute__((section(".htif")));
volatile uint64_t riscv_fill_up_htif_section[510] __attribute__((section(".htif")));
volatile int htif_console_buf;
-static void __check_fromhost()
+static void __check_fromhost(void)
{
uint64_t fh = fromhost;
if (!fh) {
@@ -76,7 +76,7 @@ static void __set_tohost(uintptr_t dev, uintptr_t cmd, uintptr_t data)
tohost = TOHOST_CMD(dev, cmd, data);
}
-int htif_console_getchar()
+static int htif_console_getchar(void)
{
__check_fromhost();
int ch = htif_console_buf;
@@ -88,28 +88,12 @@ int htif_console_getchar()
return ch - 1;
}
-static void do_tohost_fromhost(uintptr_t dev, uintptr_t cmd, uintptr_t data)
-{
- __set_tohost(dev, cmd, data);
-
- while (1) {
- uint64_t fh = fromhost;
- if (fh) {
- if (FROMHOST_DEV(fh) == dev && FROMHOST_CMD(fh) == cmd) {
- fromhost = 0;
- break;
- }
- __check_fromhost();
- }
- }
-}
-
-void htif_console_putchar(uint8_t ch)
+static void htif_console_putchar(uint8_t ch)
{
__set_tohost(1, 1, ch);
}
-void htif_poweroff()
+void htif_poweroff(void)
{
while (1) {
fromhost = 0;