feat(serial): call set_baud_rate in main

This commit is contained in:
Malo Lecomte 2021-07-13 03:16:12 +02:00
parent 2fd5c536e0
commit 5e3155aebf
2 changed files with 2 additions and 0 deletions

1
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");

@ -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);