Began work FAT32 drivers in KBOOT

This commit is contained in:
2025-01-10 11:30:24 +01:00
parent 23ab5d7bfb
commit 295e3d9c18
8 changed files with 220 additions and 27 deletions
+3 -1
View File
@@ -2,7 +2,7 @@
#define DISK_H
#include "stdint.h"
#include "attr.h"
#include "defs.h"
#define SECTOR_SIZE 512
#define PIO_PORT 0x1f0
@@ -14,6 +14,8 @@
#define BOOTABLE 0x80
#define LBA_TO_OFFSET(_a) ((_a) * SECTOR_SIZE)
struct partition {
uint8_t bootable;
uint8_t startCHS[3];