limine: Clarify ambiguity with response revision and internal modules
This commit is contained in:
parent
012605adf9
commit
b66184cfbd
|
@ -605,7 +605,7 @@ struct limine_framebuffer {
|
||||||
uint64_t edid_size;
|
uint64_t edid_size;
|
||||||
void *edid;
|
void *edid;
|
||||||
|
|
||||||
/* Revision 1 */
|
/* Response revision 1 */
|
||||||
uint64_t mode_count;
|
uint64_t mode_count;
|
||||||
struct limine_video_mode **modes;
|
struct limine_video_mode **modes;
|
||||||
};
|
};
|
||||||
|
@ -907,7 +907,7 @@ struct limine_module_request {
|
||||||
uint64_t revision;
|
uint64_t revision;
|
||||||
struct limine_module_response *response;
|
struct limine_module_response *response;
|
||||||
|
|
||||||
/* Revision 1 */
|
/* Request revision 1 */
|
||||||
uint64_t internal_module_count;
|
uint64_t internal_module_count;
|
||||||
struct limine_internal_module **internal_modules;
|
struct limine_internal_module **internal_modules;
|
||||||
};
|
};
|
||||||
|
@ -917,6 +917,8 @@ struct limine_module_request {
|
||||||
* `internal_modules` - Pointer to an array of `internal_module_count` pointers to
|
* `internal_modules` - Pointer to an array of `internal_module_count` pointers to
|
||||||
`struct limine_internal_module` structures.
|
`struct limine_internal_module` structures.
|
||||||
|
|
||||||
|
Note: Internal modules are honoured if the module response has revision >= 1.
|
||||||
|
|
||||||
As part of `struct limine_internal_module`:
|
As part of `struct limine_internal_module`:
|
||||||
|
|
||||||
* `path` - Path to the module to load. This path is *relative* to the location of
|
* `path` - Path to the module to load. This path is *relative* to the location of
|
||||||
|
|
|
@ -662,6 +662,8 @@ FEAT_START
|
||||||
struct limine_module_response *module_response =
|
struct limine_module_response *module_response =
|
||||||
ext_mem_alloc(sizeof(struct limine_module_response));
|
ext_mem_alloc(sizeof(struct limine_module_response));
|
||||||
|
|
||||||
|
module_response->revision = 1;
|
||||||
|
|
||||||
struct limine_file *modules = ext_mem_alloc(module_count * sizeof(struct limine_file));
|
struct limine_file *modules = ext_mem_alloc(module_count * sizeof(struct limine_file));
|
||||||
|
|
||||||
size_t final_module_count = 0;
|
size_t final_module_count = 0;
|
||||||
|
|
2
limine.h
2
limine.h
|
@ -380,7 +380,7 @@ struct limine_module_request {
|
||||||
uint64_t revision;
|
uint64_t revision;
|
||||||
LIMINE_PTR(struct limine_module_response *) response;
|
LIMINE_PTR(struct limine_module_response *) response;
|
||||||
|
|
||||||
/* Revision 1 */
|
/* Request revision 1 */
|
||||||
uint64_t internal_module_count;
|
uint64_t internal_module_count;
|
||||||
LIMINE_PTR(struct limine_internal_module **) internal_modules;
|
LIMINE_PTR(struct limine_internal_module **) internal_modules;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue