Changeset 7fe4855 in rtems


Ignore:
Timestamp:
Jul 19, 2018, 11:58:12 AM (15 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
791d9ac5
Parents:
8db3f0e
git-author:
Sebastian Huber <sebastian.huber@…> (07/19/18 11:58:12)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/25/18 08:07:43)
Message:

bsp/riscv: Fix HTIF warnings

Update #3433.

Location:
bsps/riscv/riscv
Files:
1 added
4 edited

Legend:

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

    r8db3f0e r7fe4855  
    2828#include <libfdt.h>
    2929
    30 #if RISCV_ENABLE_HTIF_SUPPORT > 0
     30#if RISCV_ENABLE_HTIF_SUPPORT != 0
    3131static htif_console_context htif_console_instance;
    3232#endif
     
    9898
    9999  while (node >= 0) {
    100 #if RISCV_ENABLE_HTIF_SUPPORT
     100#if RISCV_ENABLE_HTIF_SUPPORT != 0
    101101    if (fdt_node_check_compatible(fdt, node, "ucb,htif0") == 0) {
    102102      htif_console_context_init(&htif_console_instance.base, node);
     
    176176)
    177177{
     178#if RISCV_ENABLE_HTIF_SUPPORT != 0
    178179  rtems_termios_device_context *base;
    179180  char htif_path[] = "/dev/ttyShtif";
     181#endif
    180182#if RISCV_CONSOLE_MAX_NS16550_DEVICES > 0
    181183  char path[] = "/dev/ttyS?";
     
    185187  rtems_termios_initialize();
    186188
    187 #if RISCV_ENABLE_HTIF_SUPPORT
     189#if RISCV_ENABLE_HTIF_SUPPORT != 0
    188190  base = &htif_console_instance.base;
    189191  rtems_termios_device_install(htif_path, &htif_console_handler, NULL, base);
  • bsps/riscv/riscv/console/htif.c

    r8db3f0e r7fe4855  
    2727 * SUCH DAMAGE.
    2828 */
     29
     30#include <bsp/riscv.h>
     31
     32#if RISCV_ENABLE_HTIF_SUPPORT != 0
    2933
    3034#include <dev/serial/htif.h>
     
    136140  .mode = TERMIOS_POLLED
    137141};
     142
     143#endif /* RISCV_ENABLE_HTIF_SUPPORT */
  • bsps/riscv/riscv/headers.am

    r8db3f0e r7fe4855  
    99include_bsp_HEADERS =
    1010include_bsp_HEADERS += ../../../../../../bsps/riscv/riscv/include/bsp/irq.h
     11include_bsp_HEADERS += ../../../../../../bsps/riscv/riscv/include/bsp/riscv.h
    1112
    1213include_dev_irqdir = $(includedir)/dev/irq
  • bsps/riscv/riscv/start/bsp_fatal_halt.c

    r8db3f0e r7fe4855  
    2727 */
    2828
    29 #include <bsp.h>
     29#include <bsp/riscv.h>
    3030
    31 /* Send a power-off signal to the host */
    3231void _CPU_Fatal_halt(uint32_t source, uint32_t error)
    3332{
     33#if RISCV_ENABLE_HTIF_SUPPORT != 0
    3434  htif_poweroff();
     35#endif
     36
     37  while (true) {
     38    /* Do nothing */
     39  }
    3540}
Note: See TracChangeset for help on using the changeset viewer.