2012/2/28 H. Peter Anvin <hpa@xxxxxxxxx>:On 02/28/2012 10:32 AM, Bodo Eggert wrote:
Asking the BIOS is as correct as querying the memory location (defined
to have same result), but more expensive.
Not quite, in reality; it is more likely to work on systems which implement
various kinds of bypass schemes. The key aspect of this, though, is that
this is done on a BIOS path and not by groping a memory location which may
not even be initialized on non-BIOS systems.
I got the idea that we should somehow check the kbd_state and set the
numlock accordingly but this is behind my capabilities. I tried
several times to read those boot_params but I have no idea how to do
it. Where are they stored, how to access them? Help anyone?