mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
Kernel: Only use multiboot framebuffer details if present
We should only look at the framebuffer structure members if the MULTIBOOT_INFO_FRAMEBUFFER_INFO bit is set in the flags field. Also add some logging if we ignored the fbdev command line argument due to either not having a framebuffer provided by the bootloader, or because we don't support the framebuffer format.
This commit is contained in:
parent
785c10fda9
commit
6a4d06e739
3 changed files with 18 additions and 8 deletions
|
@ -46,6 +46,8 @@ struct multiboot_mmap_entry {
|
|||
} __attribute__((packed));
|
||||
typedef struct multiboot_mmap_entry multiboot_memory_map_t;
|
||||
|
||||
#define MULTIBOOT_INFO_FRAMEBUFFER_INFO (1 << 12)
|
||||
|
||||
struct multiboot_info {
|
||||
// Multiboot info version number.
|
||||
u32 flags;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue