all: wrap vesa feature in ifdef

This commit is contained in:
2021-04-30 01:15:42 +03:00
parent abec971f7c
commit 2272bc55f1
+4
View File
@@ -192,12 +192,14 @@ void kernel_early_init(uint64_t entry_method) {
}
cpuid_init();
#if defined(VESA_ENABLE)
vesa_early_init(&boot_video_info);
struct display *disp = vesa_get_display();
if (disp) {
kdebug("Initialize early console!\n");
console_init_early(disp);
}
#endif
// Reinitialize RS232 properly
rs232_init(RS232_COM1);
@@ -221,7 +223,9 @@ void kernel_early_init(uint64_t entry_method) {
amd64_mm_init();
#if defined(VESA_ENABLE)
vesa_add_display();
#endif
if (elf_sections.kind != KSYM_TABLE_NONE) {
ksym_set(&elf_sections);