]> git.proxmox.com Git - grub2.git/blobdiff - grub-core/boot/i386/pc/boot.S
Add configure option to reduce visual clutter at boot time
[grub2.git] / grub-core / boot / i386 / pc / boot.S
index b4975e2d029d74c9a6feba4b957f2ae515c72944..1fc8f085d6a27b3456694034ea38b7d778e6a544 100644 (file)
@@ -19,6 +19,9 @@
 
 #include <grub/symbol.h>
 #include <grub/machine/boot.h>
+#if defined(QUIET_BOOT) && !defined(HYBRID_BOOT)
+#include <grub/machine/memory.h>
+#endif
 
 /*
  *  defines for the code go here
@@ -249,9 +252,17 @@ real_start:
        /* save drive reference first thing! */
        pushw   %dx
 
+#if defined(QUIET_BOOT) && !defined(HYBRID_BOOT)
+       /* is either shift key held down? */
+       movw    $(GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR + 0x17), %bx
+       andb    $3, (%bx)
+       jz      2f
+#endif
+
        /* print a notification message on the screen */
        MSG(notification_string)
 
+2:
        /* set %si to the disk address packet */
        movw    $disk_address_packet, %si