summaryrefslogtreecommitdiff
path: root/src/kernel.c
diff options
context:
space:
mode:
authorCarlos Maiolino <[email protected]>2026-02-24 08:13:48 +0100
committerCarlos Maiolino <[email protected]>2026-02-24 20:24:57 +0100
commitc96b289dc49c18ac36fb7e13242e5f855a56840e (patch)
tree01235198a6b4148e3bd00b1dd03aa69e6dd76afd /src/kernel.c
parentdae0a3cbf6dba6fc537f943362021f4d8ffcd859 (diff)
Add ata driver
Enable the kernel to read from an ATA device Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'src/kernel.c')
-rw-r--r--src/kernel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel.c b/src/kernel.c
index 01de04f..d917bd8 100644
--- a/src/kernel.c
+++ b/src/kernel.c
@@ -7,11 +7,14 @@
#include <toxic/io.h>
#include <mm/kernel_heap.h>
#include <mm/paging.h>
+#include <ata/ata.h>
static struct page_directory *kernel_directory;
void start_kernel()
{
+ char buf[512] = {0};
+
init_display(2);
vprintl("Hello World!!!\n");
vprintl("Testing it!!!\n");
@@ -48,4 +51,5 @@ void start_kernel()
kfree(ptr);
+ ata_read_sector(0, 1, buf);
}