All of lore.kernel.org
 help / color / mirror / Atom feed
* at_keyboard flush on i386-qemu
@ 2009-06-27 11:25 Robert Millan
  2009-06-29  4:02 ` Pavel Roskin
  2009-07-07 19:51 ` [PATCH] use ljmp to reboot (Re: at_keyboard flush on i386-qemu) Robert Millan
  0 siblings, 2 replies; 7+ messages in thread
From: Robert Millan @ 2009-06-27 11:25 UTC (permalink / raw)
  To: grub-devel


Hi,

Pavel pointed out earlier that sometimes when starting on i386-qemu GRUB
receives spurious events from AT keyboard.  It seems that it is the role
of the firmware to flush this buffer at startup.

Unless someone has a better idea, I would fix this with:

  - Moving at_keyboard to kernel on i386-qemu.

  - [ifdef GRUB_MACHINE_QEMU]: flush the input buffer at at_keyboard
    startup by reading and discarding events for a fixed amount of time.

I don't like that we have a race here.  Suggestions welcome on how to
improve that, but TTBOMK if there's more than one event you can't tell
when you're processing the last one.

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-07-10 17:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-27 11:25 at_keyboard flush on i386-qemu Robert Millan
2009-06-29  4:02 ` Pavel Roskin
2009-06-29 13:33   ` Robert Millan
2009-06-30  1:01     ` Pavel Roskin
2009-07-07 19:51 ` [PATCH] use ljmp to reboot (Re: at_keyboard flush on i386-qemu) Robert Millan
2009-07-07 20:51   ` Pavel Roskin
2009-07-10 17:07     ` Robert Millan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.