sp1: bpt: Add RSDP field to protovars

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-04-20 10:35:38 -04:00
parent 81d6454205
commit 1302a92d9d
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -27,6 +27,13 @@ static volatile struct limine_hhdm_request hhdm_req = {
.revision = 0 .revision = 0
}; };
/* ACPI RSDP request */
static struct limine_rsdp_response *rsdp_resp = NULL;
static volatile struct limine_rsdp_request rsdp_req = {
.id = LIMINE_RSDP_REQUEST,
.revision = 0
};
/* /*
* Obtain the boot protocol variables * Obtain the boot protocol variables
* *
@@ -40,6 +47,7 @@ limine_get_protovar(struct bpt_protovar *res)
} }
res->kload_base = hhdm_resp->offset; res->kload_base = hhdm_resp->offset;
res->rsdp = rsdp_resp->address;
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
@@ -80,6 +88,7 @@ bpt_init_limine(struct bpt_ops *ops)
hhdm_resp = hhdm_req.response; hhdm_resp = hhdm_req.response;
memmap_resp = memmap_req.response; memmap_resp = memmap_req.response;
rsdp_resp = rsdp_req.response;
ops->get_protovar = limine_get_protovar; ops->get_protovar = limine_get_protovar;
ops->mem_entry_i = limine_mem_entry_i; ops->mem_entry_i = limine_mem_entry_i;
+1
View File
@@ -52,6 +52,7 @@ struct mem_entry {
*/ */
struct bpt_protovar { struct bpt_protovar {
uintptr_t kload_base; uintptr_t kload_base;
void *rsdp;
}; };
/* /*