Hi,

Please could you test if this patch helps?

Thanks

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
Index: loader/i386/linux.c
===================================================================
--- loader/i386/linux.c	(revision 2375)
+++ loader/i386/linux.c	(working copy)
@@ -420,8 +420,15 @@
   params->lfb_line_len = mode_info.pitch;
 
   params->lfb_base = (grub_size_t) render_target->data;
-  params->lfb_size = (params->lfb_line_len * params->lfb_height + 65535) >> 16;
 
+  {
+    struct grub_vbe_info_block *vbe_ib;
+    vbe_ib = (struct grub_vbe_info_block *) GRUB_MEMORY_MACHINE_SCRATCH_ADDR;
+    if (grub_vbe_bios_get_controller_info (vbe_ib) != 0x004F)
+      grub_fatal ("fuck.");
+    params->lfb_size = vbe_ib->total_memory;
+  }
+
   params->red_mask_size = mode_info.red_mask_size;
   params->red_field_pos = mode_info.red_field_pos;
   params->green_mask_size = mode_info.green_mask_size;

Reply via email to