diff --git a/kernel/fb.c b/kernel/fb.c index 030e8f9..74c7007 100644 --- a/kernel/fb.c +++ b/kernel/fb.c @@ -51,6 +51,11 @@ uint64_t pos_y = 4; // Настройка прослойки графики ядра void fb_init( ) { framebuffer_response = framebuffer_request.response; + + if (framebuffer_response == NULL) { + asm volatile("hlt"); + } + boot_framebuffer = framebuffer_response->framebuffers[0]; fb_addr = (uint32_t *)boot_framebuffer->address; width = boot_framebuffer->width;