forked from PoliEcho-holding-org/kern
Began work FAT32 drivers in KBOOT
This commit is contained in:
+3
-1
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user