# HG changeset patch # Parent 92c497d0c1dd4accc88fff7fa499a335f40dfa91 diff -r 92c497d0c1dd grub-core/boot/i386/pc/boot.S --- a/grub-core/boot/i386/pc/boot.S +++ b/grub-core/boot/i386/pc/boot.S @@ -152,10 +152,12 @@ /* save drive reference first thing! */ pushw %dx +#if 0 /* This wipes out the numlock state and it is not in GRUB newer code */ /* 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) diff -r 92c497d0c1dd grub-core/boot/i386/pc/diskboot.S --- a/grub-core/boot/i386/pc/diskboot.S +++ b/grub-core/boot/i386/pc/diskboot.S @@ -25,8 +25,13 @@ */ #define MSG(x) movw $x, %si; call LOCAL(message) -#define SILENT(x) call LOCAL(check_silent); jz LOCAL(x) +// The check_silent code wipes the numlock key state. +#if 0 + #define SILENT(x) call LOCAL(check_silent); jz LOCAL(x) +#else + #define SILENT(x) +#endif .file "diskboot.S" .text