summaryrefslogtreecommitdiff
path: root/src/kernel/arch/i386/tty/tty.c
blob: 300bbcce671f4458c4758357dfea5d3b06dae332 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <kernel/arch/i386/tty/serial.h>
#include <kernel/arch/i386/tty/vga.h>
#include <kernel/arch/log.h>

void tty_init() {
	vga_clear();
	serial_init();
}

void tty_write(const char *buf, size_t len) {
	vga_write(buf, len);
	serial_write(buf, len);
}