Новая проверка на NULL

This commit is contained in:
Aren Elchinyan 2023-10-29 18:47:24 +03:00
parent 7238a090b8
commit b135289a08

View File

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