]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
authorrobertmh <robertmh@localhost>
Mon, 17 Aug 2009 12:44:28 +0000 (12:44 +0000)
committerrobertmh <robertmh@localhost>
Mon, 17 Aug 2009 12:44:28 +0000 (12:44 +0000)
        * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
        (DEFAULT_VIDEO_MODE): Remove macros.
        (grub_linux_boot): Remove assumption that Linux has FB support,
        and use "text" as default video mode.

ChangeLog
loader/i386/linux.c

index 3d34abf213e7beb1b681bad3a0f0a17d5fd00677..7374c3903f027b270f14f2ade522f29ddd27be86 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-08-17  Robert Millan  <rmh.grub@aybabtu.com>
+
+       * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
+       (DEFAULT_VIDEO_MODE): Remove macros.
+       (grub_linux_boot): Remove assumption that Linux has FB support,
+       and use "text" as default video mode.
+
 2009-08-15  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
index 238e4cd8f658fb23c8a06e976e49e686ab3c8959..4144384db16dbcec00eda728ba2c0a60b0bfb41f 100644 (file)
 #define GRUB_LINUX_CL_OFFSET           0x1000
 #define GRUB_LINUX_CL_END_OFFSET       0x2000
 
-/* This macro is useful for distributors, who can be certain they built FB support
-   into Linux, and therefore can benefit from seamless mode transition between
-   GRUB and Linux (saving boot time and visual glitches).  Official GRUB, OTOH,
-   needs to be conservative.  */
-#ifdef GRUB_ASSUME_LINUX_HAS_FB_SUPPORT
-#define DEFAULT_VIDEO_MODE "keep,1024x768,800x600,640x480"
-#else
-#define DEFAULT_VIDEO_MODE "text"
-#endif
-
 static grub_dl_t my_mod;
 
 static grub_size_t linux_mem_size;
@@ -501,17 +491,15 @@ grub_linux_boot (void)
   if (modevar && *modevar != 0)
     {
       tmp = grub_malloc (grub_strlen (modevar)
-                        + sizeof (DEFAULT_VIDEO_MODE) + 1);
+                        + sizeof (";text"));
       if (! tmp)
        return grub_errno;
-      grub_sprintf (tmp, "%s;" DEFAULT_VIDEO_MODE, modevar);
+      grub_sprintf (tmp, "%s;text", modevar);
       err = grub_video_set_mode (tmp, 0);
       grub_free (tmp);
     }
-#ifndef GRUB_ASSUME_LINUX_HAS_FB_SUPPORT
   else
-    err = grub_video_set_mode (DEFAULT_VIDEO_MODE, 0);
-#endif
+    err = grub_video_set_mode ("text", 0);
 
   if (err)
     {