Add some basic fat32 code
This commit is contained in:
@@ -6,9 +6,10 @@
|
||||
#include "devices/mapper.h"
|
||||
#include "devices/rtc.h"
|
||||
#include "devices/serial.h"
|
||||
|
||||
#include "devices/terminal.h"
|
||||
|
||||
#include "filesystems/fat32.h"
|
||||
|
||||
|
||||
void handle_rtc_interrupt() {
|
||||
// cputs("In IRQ interrupt!\n");
|
||||
@@ -22,16 +23,16 @@ char buf[128];
|
||||
int main() {
|
||||
cputs("Kernel\n");
|
||||
|
||||
// cputs("Init Mapper\n");
|
||||
cputs("Init Mapper\n");
|
||||
init_mapper();
|
||||
|
||||
// cputs("Initialize Interrupts\n");
|
||||
cputs("Initialize Interrupts\n");
|
||||
init_interrupts();
|
||||
|
||||
// cputs("Initialize Interrupt Controller\n");
|
||||
cputs("Initialize Interrupt Controller\n");
|
||||
init_interrupt_controller();
|
||||
|
||||
// cputs("Initialize RTC\n");
|
||||
cputs("Initialize RTC\n");
|
||||
init_rtc();
|
||||
|
||||
register_irq(&handle_rtc_interrupt, 0);
|
||||
@@ -41,10 +42,12 @@ int main() {
|
||||
|
||||
asm volatile("cli");
|
||||
|
||||
// cputs("Initialize Serial\n");
|
||||
cputs("Initialize Serial\n");
|
||||
serial_init();
|
||||
|
||||
serial_puts("Hello from serial!\n");
|
||||
|
||||
fat32_init();
|
||||
|
||||
terminal_open(NULL);
|
||||
terminal_write(0, "Terminal Write\n", 15);
|
||||
|
||||
Reference in New Issue
Block a user