diff options
| author | Ada Christine <adachristine18@gmail.com> | 2026-05-26 21:32:27 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2026-05-26 21:32:27 +0000 |
| commit | a10aabfcd52f702057316018cd7847ab2bfe4aa1 (patch) | |
| tree | cc4652d2b602798934e8a48b4939cfb20eda1989 /kc/core/stdio.c | |
| parent | 90c29fdde317c39384011a6ba97077c138f13ad6 (diff) | |
we're bringing kjarna back and not doing the crazy stuff with trying to have task management during efi. that was a bit extra.kjarna
Diffstat (limited to 'kc/core/stdio.c')
| -rw-r--r-- | kc/core/stdio.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/kc/core/stdio.c b/kc/core/stdio.c new file mode 100644 index 0000000..66c539f --- /dev/null +++ b/kc/core/stdio.c @@ -0,0 +1,18 @@ +#include "serial.h" +#include "video.h" + +#include <stdint.h> +#include <stdbool.h> + +#include <libc/stdio.h> +#include <libc/string.h> + +FILE *stdout; + +int fputc(int c, FILE *f) +{ + (void)f; + video_putchar(c); + return serial_putchar(c); +} + |
