From 9b56c1edb74e60644f4c47a5692b9f99d2324106 Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Wed, 15 Jan 2014 20:05:20 +0100 Subject: [PATCH] Clean vesainfo --- kernel/include/vesa.hpp | 2 +- kernel/src/shell.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/include/vesa.hpp b/kernel/include/vesa.hpp index d951eb2f..df94202a 100644 --- a/kernel/include/vesa.hpp +++ b/kernel/include/vesa.hpp @@ -90,7 +90,7 @@ struct mode_info_block_t { uint8_t linear_blue_mask_position; uint8_t linear_reserved_mask_size; uint8_t linear_reserved_mask_position; - uint16_t maximum_pixel_clock[2]; + uint32_t maximum_pixel_clock; uint8_t reserved_2[190]; } __attribute__((packed)); diff --git a/kernel/src/shell.cpp b/kernel/src/shell.cpp index 42098316..f9e185c9 100644 --- a/kernel/src/shell.cpp +++ b/kernel/src/shell.cpp @@ -853,6 +853,8 @@ void vesainfo_command(const std::vector&){ k_printf("Depth: %u\n", static_cast(block.bpp)); k_printf("Pitch: %u\n", static_cast(block.pitch)); k_printf("LFB Address: %h\n", static_cast(block.linear_video_buffer)); + k_printf("Offscreen Memory Size: %h\n", static_cast(block.offscreen_memory_size)); + k_printf("Maximum Pixel Clock: %h\n", static_cast(block.maximum_pixel_clock)); k_printf("Red Mask Size: %u\n", static_cast(block.linear_red_mask_size)); k_printf("Red Mask Position: %u\n", static_cast(block.linear_red_mask_position));