1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-11-13 11:04:27 -05:00
libkernaux/examples/arch-riscv64-min/main.c

19 lines
312 B
C

#include <stddef.h>
#include <stdint.h>
static unsigned char *const uart = (unsigned char*)0x10000000;
static void putchar(char c) {
*uart = c;
}
static void print(const char * str) {
while (*str != '\0') {
putchar(*str);
str++;
}
}
void main() {
print("Hello world!\r\n");
}