mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-04 14:11:58 +03:00
Merge pull request #99 from Andy-Python-Programmer/trunk
Implement the "stivale2_struct_tag_kernel_file_v2" tag
This commit is contained in:
commit
9798bc2ac4
@ -218,6 +218,19 @@ failed_to_load_header_section:
|
||||
append_tag(&stivale2_struct, (struct stivale2_tag *)tag);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////
|
||||
// Create kernel file v2 struct tag
|
||||
//////////////////////////////////////////////
|
||||
{
|
||||
struct stivale2_struct_tag_kernel_file_v2 *tag = ext_mem_alloc(sizeof(struct stivale2_struct_tag_kernel_file_v2));
|
||||
|
||||
tag->tag.identifier = STIVALE2_STRUCT_TAG_KERNEL_FILE_V2_ID;
|
||||
tag->kernel_file = REPORTED_ADDR((uint64_t)(uintptr_t)kernel);
|
||||
tag->kernel_size = kernel_file->size;
|
||||
|
||||
append_tag(&stivale2_struct, (struct stivale2_tag *)tag);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////
|
||||
// Create kernel slide struct tag
|
||||
//////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user