Bootloader: Search framebuffer information from kernel memory

Framebuffer information is no longer hard coded into bootloader.
Kernel can define framebuffer info structure in its memory which is
used for finding proper video mode.
This commit is contained in:
2023-12-09 17:32:10 +02:00
parent 8b01e2d4a2
commit abc69fa3d5
2 changed files with 82 additions and 28 deletions

View File

@@ -59,11 +59,6 @@ stage2_main:
call get_memory_map
call read_user_command_line
movw $800, %ax
movw $600, %bx
movb $32, %cl
call vesa_find_video_mode
call print_newline
@@ -87,7 +82,7 @@ stage2_main:
call elf_read_kernel_to_memory
call vesa_set_target_mode
call vesa_set_video_mode
cli