vfs: initcpio: read initramfs.cpio file into vfs

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-09 21:18:57 -04:00
commit acf469ff71
7 changed files with 28 additions and 14 deletions

View file

@ -4,17 +4,22 @@
#define REQUEST __attribute__((used, section(".limine_requests"))) volatile
REQUEST u64 _limine_requests_start[] = LIMINE_REQUESTS_START_MARKER;
REQUEST struct limine_executable_address_request kern_addr_req = {.id = LIMINE_EXECUTABLE_ADDRESS_REQUEST_ID, .revision = 0};
REQUEST struct limine_memmap_request memmap_req = {.id = LIMINE_MEMMAP_REQUEST_ID, .revision = 0};
REQUEST struct limine_hhdm_request hhdm_req = {.id = LIMINE_HHDM_REQUEST_ID, .revision = 0};
REQUEST struct limine_rsdp_request rsdp_req = {.id = LIMINE_RSDP_REQUEST_ID, .revision = 0};
REQUEST struct limine_module_request module_req = {.id = LIMINE_MODULE_REQUEST_ID, .revision = 0};
REQUEST u64 limine_base_revision[] = LIMINE_BASE_REVISION(6);
REQUEST u64 _limine_requests_end[] = LIMINE_REQUESTS_END_MARKER;
struct limine_executable_address_response *kern_addr_res = NULL;
struct limine_memmap_response *kern_map_res = NULL;
struct limine_hhdm_response *kern_hhdm_res = NULL;
struct limine_rsdp_response *kern_rsdp_res = NULL;
struct limine_module_response *module_res = NULL;
vaddr_t hhdm_start = 0;
@ -24,6 +29,7 @@ void requests_init()
kern_map_res = memmap_req.response;
kern_hhdm_res = hhdm_req.response;
kern_rsdp_res = rsdp_req.response;
module_res = module_req.response;
hhdm_start = kern_hhdm_res->offset;
}