limine: Deprecate .limine_reqs and remove it as of base revision 1

This commit is contained in:
mintsuki 2023-11-02 09:47:00 +01:00
parent 26e77b877b
commit 4ade725b78
2 changed files with 5 additions and 2 deletions

View File

@ -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.

View File

@ -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;