start adding disk things

This commit is contained in:
2025-03-15 16:03:16 +03:00
parent fe1264d55d
commit a7a7121812
6 changed files with 181 additions and 2 deletions
+11
View File
@@ -3,6 +3,9 @@
#include "../include/screen.h"
#include "../include/stdio.h"
#include "../include/utils.h"
#include "../include/disk.h"
#include <stdint.h>
void kmain()
{
@@ -15,6 +18,14 @@ void kmain()
char yooo[256] = "heheh";
printf("test string: %s\n", yooo);
printf("checking for disk...\n");
int disk_present = ide_check_disk_present();
printf("we got the result, it's %X\n", disk_present);
disk_info *info;
get_disk_info(info);
printf("CYL HEAD SECT: %X %X %X\n", info->cylinders, info->heads, info->sectors);
while(1)
{
if(inportb(0x64) & 0x1)