For the terminal stuff
This commit is contained in:
parent
2e6c08beaf
commit
4c782da79e
|
@ -137,9 +137,10 @@ struct BootInfo_t
|
|||
|
||||
// Informations about the video drive
|
||||
struct {
|
||||
ushort valid;
|
||||
uint vbeControl; //vbe_control_info
|
||||
uint vbeModeInfo; //vbe_mode_info
|
||||
ushort vbeValid;
|
||||
ushort fbuValid;
|
||||
void *vbeControl; //vbe_control_info
|
||||
void *vbeModeInfo; //vbe_mode_info
|
||||
ushort vbeMode; //vbe_mode
|
||||
ushort vbeInterfaceSeg; //vbe_interface_seg
|
||||
ushort vbeInterfaceOff; //vbe_interface_off
|
||||
|
|
|
@ -74,7 +74,25 @@ void InitBootInfo(multiboot_info_t *mbi)
|
|||
GetBootInfo(memory).mapValid = 1;
|
||||
}
|
||||
|
||||
// XXX assign video infos, but unused at this time
|
||||
// Retrieves video mode informations
|
||||
if (GetBootInfo(btldr).grubFlags & MULTIBOOT_INFO_VBE_INFO) {
|
||||
GetBootInfo(video).vbeControl = (void*)(ullong)mbi->vbe_control_info;
|
||||
GetBootInfo(video).vbeModeInfo = (void*)(ullong)mbi->vbe_mode_info;
|
||||
GetBootInfo(video).vbeMode = mbi->vbe_mode;
|
||||
GetBootInfo(video).vbeInterfaceSeg = mbi->vbe_interface_seg;
|
||||
GetBootInfo(video).vbeInterfaceOff = mbi->vbe_interface_off;
|
||||
GetBootInfo(video).vbeInterfaceLen = mbi->vbe_interface_len;
|
||||
GetBootInfo(video).vbeValid = 1;
|
||||
}
|
||||
if (GetBootInfo(btldr).grubFlags & MULTIBOOT_INFO_FRAMEBUFFER_INFO) {
|
||||
GetBootInfo(video).framebufferAddr = (void*)(ullong)mbi->framebuffer_addr;
|
||||
GetBootInfo(video).framebufferPitch = mbi->framebuffer_pitch;
|
||||
GetBootInfo(video).framebufferWidth = mbi->framebuffer_width;
|
||||
GetBootInfo(video).framebufferHeight= mbi->framebuffer_height;
|
||||
GetBootInfo(video).framebufferBpp = mbi->framebuffer_bpp;
|
||||
GetBootInfo(video).framebufferType = mbi->framebuffer_type;
|
||||
GetBootInfo(video).fbuValid = 1;
|
||||
}
|
||||
|
||||
// Retrieves the firmware infos
|
||||
if (GetBootInfo(btldr).grubFlags & MULTIBOOT_INFO_CONFIG_TABLE) {
|
||||
|
@ -99,6 +117,10 @@ void InitBootInfo(multiboot_info_t *mbi)
|
|||
GetBootInfo(memory).memValid ? okStr : noStr);
|
||||
DebugLog("[InitBootInfo] Memory map %s\n",
|
||||
GetBootInfo(memory).mapValid ? okStr : noStr);
|
||||
DebugLog("[InitBootInfo] Video infos %s\n",
|
||||
GetBootInfo(video).vbeValid ? okStr : noStr);
|
||||
DebugLog("[InitBootInfo] Framebuffer %s\n",
|
||||
GetBootInfo(video).fbuValid ? okStr : noStr);
|
||||
DebugLog("[InitBootInfo] ROM table %s\n",
|
||||
GetBootInfo(firmware).romValid ? okStr : noStr);
|
||||
DebugLog("[InitBootInfo] APM table %s\n\n",
|
||||
|
|
Loading…
Reference in New Issue