From 5e3155aebf74951c4ded7b856f4b982333440dcc Mon Sep 17 00:00:00 2001 From: Malo Lecomte Date: Tue, 13 Jul 2021 03:16:12 +0200 Subject: [PATCH] feat(serial): call set_baud_rate in main --- k/k.c | 1 + k/serial.h | 1 + 2 files changed, 2 insertions(+) diff --git a/k/k.c b/k/k.c index 5480228..eea9dae 100644 --- a/k/k.c +++ b/k/k.c @@ -35,6 +35,7 @@ void k_main(unsigned long magic, multiboot_info_t *info) char star[4] = "|/-\\"; char *fb = (void *)0xb8000; + set_baud_rate(); init_serial(); printf("bonjour\r\n"); diff --git a/k/serial.h b/k/serial.h index e193f8d..0422f65 100644 --- a/k/serial.h +++ b/k/serial.h @@ -20,6 +20,7 @@ #define EMPTY_TRANSMITTER (0x1 << 5) +void set_baud_rate(void); void init_serial(void); int write(const char *buf, size_t count);