]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
authorRobert Millan <rmh@aybabtu.com>
Sun, 10 Jan 2010 01:10:39 +0000 (01:10 +0000)
committerRobert Millan <rmh@aybabtu.com>
Sun, 10 Jan 2010 01:10:39 +0000 (01:10 +0000)
Fix i386-ieee1275 build.

* loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
and grub_term_height() for video_{width,height} initialization.

ChangeLog
loader/i386/ieee1275/linux.c

index 9879050bf7d4ed931223007549ab37f724d3afe7..f5ff60553036281b21841508457105be803b2367 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,11 @@
-2010-01-09  Robert Millan  <rmh.grub@aybabtu.com>
+2010-01-10  Robert Millan  <rmh.grub@aybabtu.com>
+
+       Fix i386-ieee1275 build.
+
+       * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
+       and grub_term_height() for video_{width,height} initialization.
+
+2010-01-10  Robert Millan  <rmh.grub@aybabtu.com>
 
        Fix grub-emu build.
 
index 7d556ee00e3c53fc1e8cc9fb11c50f96bb2c60bc..f6352bb9fdc92fa76c91afb08577022331d2bf19 100644 (file)
@@ -1,7 +1,7 @@
 /* linux.c - boot Linux zImage or bzImage */
 /*
  *  GRUB  --  GRand Unified Bootloader
- *  Copyright (C) 1999,2000,2001,2002,2003,2004,2005,2007,2008,2009  Free Software Foundation, Inc.
+ *  Copyright (C) 1999,2000,2001,2002,2003,2004,2005,2007,2008,2009,2010  Free Software Foundation, Inc.
  *
  *  GRUB is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -110,8 +110,8 @@ grub_linux_boot (void)
   params->cl_magic = GRUB_LINUX_CL_MAGIC;
   params->cl_offset = GRUB_OFW_LINUX_CL_OFFSET;
 
-  params->video_width = (grub_getwh () >> 8);
-  params->video_height = (grub_getwh () & 0xff);
+  params->video_width = grub_term_width (term);
+  params->video_height = grub_term_height (term);
   params->font_size = 16;
 
   params->ofw_signature = GRUB_LINUX_OFW_SIGNATURE;