bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible Multiboot2 documentation error


From: Alexander Craig
Subject: Possible Multiboot2 documentation error
Date: Sun, 2 Apr 2023 19:17:08 -0700

Good afternoon,

The possible error can be found in section 3.6.12 of https://www.gnu.org/software/grub/manual/multiboot2/multiboot.html

In the framebuffer tag of the Multiboot2 information structure, the reserved space listed between frambuffer_type and color_info is listed as "u8". However, in both the example code given on the page and in my own testing with GRUB, the reserved space is actually two bytes or "u16".

The relevant example code from the page can be found in "multiboot2.h". I have quoted it below for reference.
struct multiboot_tag_framebuffer_common
{
  multiboot_uint32_t type;
  multiboot_uint32_t size;

  multiboot_uint64_t framebuffer_addr;
  multiboot_uint32_t framebuffer_pitch;
  multiboot_uint32_t framebuffer_width;
  multiboot_uint32_t framebuffer_height;
  multiboot_uint8_t framebuffer_bpp;
#define MULTIBOOT_FRAMEBUFFER_TYPE_INDEXED 0
#define MULTIBOOT_FRAMEBUFFER_TYPE_RGB     1
#define MULTIBOOT_FRAMEBUFFER_TYPE_EGA_TEXT     2
  multiboot_uint8_t framebuffer_type;
  multiboot_uint16_t reserved;
};

Thanks,
Alex Craig


reply via email to

[Prev in Thread] Current Thread [Next in Thread]