Changeset 38024362 in rtems


Ignore:
Timestamp:
Jun 22, 2018, 9:00:01 AM (10 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
fef0a41
Parents:
16d905f
git-author:
Sebastian Huber <sebastian.huber@…> (06/22/18 09:00:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/27/18 06:58:17)
Message:

bsp/riscv: Fix some warnings

Update #3444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/riscv/riscv/console/console-io.c

    r16d905f r38024362  
    4848volatile int htif_console_buf;
    4949
    50 static void __check_fromhost()
     50static void __check_fromhost(void)
    5151{
    5252  uint64_t fh = fromhost;
     
    7777}
    7878
    79 int htif_console_getchar()
     79static int htif_console_getchar(void)
    8080{
    8181  __check_fromhost();
     
    8989}
    9090
    91 static void do_tohost_fromhost(uintptr_t dev, uintptr_t cmd, uintptr_t data)
    92 {
    93   __set_tohost(dev, cmd, data);
    94 
    95   while (1) {
    96     uint64_t fh = fromhost;
    97     if (fh) {
    98       if (FROMHOST_DEV(fh) == dev && FROMHOST_CMD(fh) == cmd) {
    99         fromhost = 0;
    100         break;
    101       }
    102       __check_fromhost();
    103     }
    104   }
    105 }
    106 
    107 void htif_console_putchar(uint8_t ch)
     91static void htif_console_putchar(uint8_t ch)
    10892{
    10993  __set_tohost(1, 1, ch);
    11094}
    11195
    112 void htif_poweroff()
     96void htif_poweroff(void)
    11397{
    11498  while (1) {
Note: See TracChangeset for help on using the changeset viewer.