2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
* include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro. * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option, and set GRUB_LINUX_FLAG_QUIET appropiately.
This commit is contained in:
parent
02164e1bb7
commit
28333ad04f
3 changed files with 14 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
|
||||
|
||||
* include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
|
||||
* loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
|
||||
and set GRUB_LINUX_FLAG_QUIET appropiately.
|
||||
|
||||
2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
|
||||
|
||||
Fix build on Debian / sparc.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* GRUB -- GRand Unified Bootloader
|
||||
* Copyright (C) 1999,2000,2001,2002,2003,2004,2007,2008 Free Software Foundation, Inc.
|
||||
* Copyright (C) 1999,2000,2001,2002,2003,2004,2007,2008,2009 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
|
||||
|
@ -21,7 +21,6 @@
|
|||
|
||||
#define GRUB_LINUX_MAGIC_SIGNATURE 0x53726448 /* "HdrS" */
|
||||
#define GRUB_LINUX_DEFAULT_SETUP_SECTS 4
|
||||
#define GRUB_LINUX_FLAG_CAN_USE_HEAP 0x80
|
||||
#define GRUB_LINUX_INITRD_MAX_ADDRESS 0x37FFFFFF
|
||||
#define GRUB_LINUX_MAX_SETUP_SECTS 64
|
||||
#define GRUB_LINUX_BOOT_LOADER_TYPE 0x72
|
||||
|
@ -33,6 +32,8 @@
|
|||
#define GRUB_LINUX_SETUP_STACK 0x9000
|
||||
|
||||
#define GRUB_LINUX_FLAG_BIG_KERNEL 0x1
|
||||
#define GRUB_LINUX_FLAG_QUIET 0x20
|
||||
#define GRUB_LINUX_FLAG_CAN_USE_HEAP 0x80
|
||||
|
||||
/* Linux's video mode selection support. Actually I hate it! */
|
||||
#define GRUB_LINUX_VID_MODE_NORMAL 0xFFFF
|
||||
|
|
|
@ -820,6 +820,11 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
|
|||
linux_mem_size <<= shift;
|
||||
}
|
||||
}
|
||||
else if (grub_memcmp (argv[i], "quiet", sizeof ("quiet") - 1) == 0)
|
||||
{
|
||||
params->loadflags |= GRUB_LINUX_FLAG_QUIET;
|
||||
}
|
||||
|
||||
|
||||
/* Specify the boot file. */
|
||||
dest = grub_stpcpy ((char *) real_mode_mem + GRUB_LINUX_CL_OFFSET,
|
||||
|
|
Loading…
Reference in a new issue