Annotation of solidite/kernel/libkernel/riscv64.h, revision 1.1.1.1

1.1       user        1: /* Copyright (c) 2026 The Solidite Developers
                      2:  *
                      3:  * This program is free software: you can redistribute it and/or modify it
                      4:  * under the terms of the GNU Affero General Public License as published by the
                      5:  * Free Software Foundation, either version 3 of the License, or (at your
                      6:  * option) any later version.
                      7:  *
                      8:  * This program is distributed in the hope that it will be useful, but WITHOUT
                      9:  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
                     10:  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
                     11:  * for more details.
                     12:  *
                     13:  * You should have received a copy of the GNU Affero General Public License
                     14:  * along with this program. If not, see <https://www.gnu.org/licenses/>. */
                     15: 
                     16: #ifndef RISCV64_H
                     17: #define RISCV64_H
                     18: 
                     19: #include "../../libc/include/string.h"
                     20: 
                     21: extern void kputchar(const char c);
                     22: 
                     23: __attribute__((always_inline)) static inline void kwrite(const char *s) {
                     24:   while (*s != '\0') {
                     25:     kputchar(*s);
                     26:     ++s;
                     27:   }
                     28: }
                     29: 
                     30: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>