mirror of
https://github.com/limine-bootloader/limine
synced 2025-02-12 15:14:24 +03:00
limine: Deprecate .limine_reqs and remove it as of base revision 1
This commit is contained in:
parent
26e77b877b
commit
4ade725b78
@ -113,7 +113,10 @@ the "Feature List" section below.
|
||||
|
||||
## Limine Requests Section
|
||||
|
||||
If the executable kernel file contains a `.limine_reqs` section, the bootloader
|
||||
Note: *This behaviour is deprecated as of base protocol revision 1*
|
||||
|
||||
For kernels requesting deprecated base revision 0,
|
||||
if the executable kernel file contains a `.limine_reqs` section, the bootloader
|
||||
will, instead of scanning the executable for requests, fetch the requests
|
||||
from a NULL-terminated array of pointers to the provided requests, contained
|
||||
inside said section.
|
||||
|
@ -377,7 +377,7 @@ noreturn void limine_load(char *config, char *cmdline) {
|
||||
}
|
||||
|
||||
// Load requests
|
||||
if (elf64_load_section(kernel, &requests, ".limine_reqs", 0, slide)) {
|
||||
if (base_revision == 0 && elf64_load_section(kernel, &requests, ".limine_reqs", 0, slide)) {
|
||||
for (size_t i = 0; ; i++) {
|
||||
if (requests[i] == NULL) {
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user