diff options
author | Damien Zammit <damien@zamaudio.com> | 2024-10-24 00:11:04 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-10-26 23:33:46 +0200 |
commit | 7ea3a05d1dd190db757d577757f2e3dba85e3e15 (patch) | |
tree | 88ac0e39afae2c34124a878486e29385251a345a /i386/include/mach | |
parent | 19aa2eed99e4a05ae25095a6c06d0d157a42fba2 (diff) | |
download | gnumach-7ea3a05d1dd190db757d577757f2e3dba85e3e15.tar.gz gnumach-7ea3a05d1dd190db757d577757f2e3dba85e3e15.tar.bz2 gnumach-7ea3a05d1dd190db757d577757f2e3dba85e3e15.zip |
multiboot: Support graphic mode preferences
This change forces multiboot loader to provide video mode info
and also sets the preferred video mode to EGA text to ensure
existing console behaviour still works.
When support for graphical consoles is provided, we can change
the preferred mode to linear framebuffer.
Message-ID: <20241024001047.3033826-2-damien@zamaudio.com>
Diffstat (limited to 'i386/include/mach')
-rw-r--r-- | i386/include/mach/i386/multiboot.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/i386/include/mach/i386/multiboot.h b/i386/include/mach/i386/multiboot.h index 87bcd595..8df5261f 100644 --- a/i386/include/mach/i386/multiboot.h +++ b/i386/include/mach/i386/multiboot.h @@ -23,8 +23,6 @@ #ifndef _MACH_I386_MULTIBOOT_H_ #define _MACH_I386_MULTIBOOT_H_ -#include <mach/machine/vm_types.h> - /* The entire multiboot_header must be contained within the first MULTIBOOT_SEARCH bytes of the kernel image. */ #define MULTIBOOT_SEARCH 8192 @@ -74,6 +72,10 @@ #define MULTIBOOT_VIDEO_PARAM_NO_PREFERENCE 0 +#ifndef __ASSEMBLER__ + +#include <mach/machine/vm_types.h> + /* The mods_addr field above contains the physical address of the first of 'mods_count' multiboot_module structures. */ struct multiboot_module @@ -277,4 +279,6 @@ struct multiboot_os_info { uint32_t mods_count; }; +#endif /* __ASSEMBLER__ */ + #endif /* _MACH_I386_MULTIBOOT_H_ */ |