mirror of
https://github.com/limine-bootloader/limine
synced 2025-02-12 15:14:24 +03:00
linux: Pass EDID info onto kernel
This commit is contained in:
parent
033ceb3353
commit
8475f98f08
@ -13,6 +13,7 @@
|
||||
#include <sys/idt.h>
|
||||
#include <lib/fb.h>
|
||||
#include <lib/acpi.h>
|
||||
#include <drivers/edid.h>
|
||||
|
||||
__attribute__((noreturn)) void linux_spinup(void *entry, void *boot_params);
|
||||
|
||||
@ -516,6 +517,12 @@ void linux_load(char *config, char *cmdline) {
|
||||
screen_info->orig_video_isVGA = VIDEO_TYPE_EFI;
|
||||
#endif
|
||||
|
||||
struct edid_info_struct *edid_info = get_edid_info();
|
||||
|
||||
if (edid_info != NULL) {
|
||||
memcpy(&boot_params->edid_info, edid_info, sizeof(struct edid_info_struct));
|
||||
}
|
||||
|
||||
///////////////////////////////////////
|
||||
// RSDP
|
||||
///////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user