UART as MMIO device

This commit is contained in:
2023-10-11 21:30:57 +02:00
parent 58b4bdb1e6
commit 7fbfae1081
3 changed files with 36 additions and 0 deletions
+4
View File
@@ -3,6 +3,7 @@
#include "bootloader/bootloader.h"
#include "cpu/rv32cpu.h"
#include "gdbstub/gdbstub.h"
#include "devices/uart/uart.h"
char* CURRENT_NAME;
@@ -14,6 +15,9 @@ int main(int argc, char** argv)
// Initialize the memory
mem_init();
// Initialize UART (memory-mapped)
uart_init();
// Bootload the file passed as argument
uint32_t entry_point = bootload(file_path);