Espresso 0.0.1c

This commit is contained in:
2025-07-01 20:39:38 -05:00
parent f9f3faca4f
commit 8648637b51
23 changed files with 384 additions and 419 deletions

View File

@ -8,9 +8,7 @@
#error "This kernel needs to be compiled with a ix86-elf compiler"
#endif
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <types.h>
#include <string.h>
@ -19,6 +17,7 @@
#include <gdt.h>
#include <drivers/idt.h>
#include <drivers/irq.h>
#include <multiboot.h>
@ -32,15 +31,14 @@
#include <fs/fat32.h>
#include <fs/duckfs.h>
#include <fs/vfs.h>
#include <fs/sfs.h>
#include <vector_extentions/sse.h>
#include <vector_extensions/sse.h>
#include <kernel/intro.h>
#define DEBUG
/*extern HBA_MEM *abar;
extern HBA_PORT *ahci_port;*/
extern void _hang_asm(void);
extern void _sti_asm(void);
@ -80,6 +78,8 @@ void kernel_main(multiboot_info_t* mbd, unsigned int magic)
idt_init();
_sti_asm();
irq_init(); /* MUST be done after pci_remap() and idt_init() */
terminal_setcolor(VGA_COLOR_GREEN);
printd("Initializing physical memory manager...\n");
@ -102,7 +102,7 @@ void kernel_main(multiboot_info_t* mbd, unsigned int magic)
}
else
{
printd("SSE test succeeded\n");
printd("SSE test passed\n");
}
printd("Initializing the PIT...\n");
@ -123,17 +123,13 @@ void kernel_main(multiboot_info_t* mbd, unsigned int magic)
ide_initialize();
printd("IDE initialized\n");
/*printd("Initializing fat16...\n");
fat16_init(0);
printd("fat16 initialized.\n");*/
/*printd("Initializing DuckFS...\n");
duckfs_init();
printd("DuckFS initialized\n");*/
/*printd("Initializing FAT32...\n");
fat32_init(0);
printd("FAT32 initialized\n");*/
printd("Initializing PCI...\n");
pci_enumerate();
printd("PCI initialized\n");
@ -147,6 +143,11 @@ void kernel_main(multiboot_info_t* mbd, unsigned int magic)
printf("Guten tag and welcome to Espresso\n");
/*printf("here\n");
printf("%i\n", sfs_init(false));
printf("here\n");*/
while (true)
{