source: mainline/boot/arch/riscv64/src/putchar.c@ d7f7a4a

Last change on this file since d7f7a4a was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 4 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 373 bytes
Line 
1/*
2 * SPDX-FileCopyrightText: 2016 Martin Decky
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <stddef.h>
8#include <arch/arch.h>
9#include <putchar.h>
10#include <str.h>
11#include <arch/ucb.h>
12
13void putuchar(char32_t ch)
14{
15 if (ascii_check(ch))
16 htif_cmd(HTIF_DEVICE_CONSOLE, HTIF_CONSOLE_PUTC, ch);
17 else
18 htif_cmd(HTIF_DEVICE_CONSOLE, HTIF_CONSOLE_PUTC, '?');
19}
Note: See TracBrowser for help on using the repository browser.