stos: bpal: Add loader perf stats

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-22 02:19:52 +00:00
parent 4b1c00ba43
commit f546599d18
+18
View File
@@ -20,14 +20,32 @@ static volatile struct limine_bootloader_info_request LoaderInfoReq = {
.revision = 0
};
/* Bootloader perf information */
static struct limine_bootloader_performance_response *LoaderPerfResp = NULL;
static struct limine_bootloader_performance_request LoaderPerReq = {
.id = LIMINE_BOOTLOADER_PERFORMANCE_REQUEST_ID,
.revision = 0
};
VOID
KeBpalLimineInit(VOID)
{
LoaderInfoResp = LoaderInfoReq.response;
LoaderPerfResp = LoaderPerReq.response;
DTRACE(
"slut handed control by %s %s\n",
LoaderInfoResp->name,
LoaderInfoResp->version
);
DTRACE(
"loader took %d usec\n",
LoaderPerfResp->init_usec
);
DTRACE(
"handoff took %d usec\n",
LoaderPerfResp->exec_usec
);
}