continue ahci development

This commit is contained in:
Michael Shaw 2023-05-06 21:30:05 -04:00
commit aa3eb7805d
4 changed files with 27 additions and 3 deletions

View file

@ -12,6 +12,7 @@ struct limine_rsdp_request rsdp_req = { .id = LIMINE_RSDP_REQUEST, .revision = 0
static struct rsdp *rsdp = NULL;
struct madt *__madt = NULL;
struct mcfg *__mcfg = NULL;
static void rsdt_parse(struct rsdt *rsdt)
{
@ -30,6 +31,10 @@ static void rsdt_parse(struct rsdt *rsdt)
__madt = (struct madt *)h;
}
if(!(memcmp(h->signature, "MCFG", 4))) {
__mcfg = (struct mcfg *)h;
}
#ifdef KDEBUG
char buf[8] = { 0 };
memcpy(buf, h->signature, 4);