[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
numeric keypad bug
From: |
Ludovic Drolez |
Subject: |
numeric keypad bug |
Date: |
Fri, 06 Dec 2002 16:44:37 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc3) Gecko/20020523 |
Hi !
When you modify the grub keymap (I use an AZERTY one), the numeric
keypad does not work properly because its keys are remapped.
To get the proper behavior, I added two lines to 'remap_ascii_char:' in
asm.S at the begining:
--------------------------------------
remap_ascii_char:
pushw %si
/* if key code > 55 , not ascii so don't remap */
cmpb $55, %bh
jg dont_remap
movw $ABS(EXT_C(ascii_key_map)), %si
1:
lodsw
/* check if this is the end */
testw %ax, %ax
jz 2f
/* check if this matches the ascii code */
cmpb %al, %bl
jne 1b
/* if so, perform the mapping */
movb %ah, %bl
2:
dont_remap:
/* restore %si */
popw %si
ret
------------------------------------------
Please, check that the 2 lines are correct since I'm not an asm specialist.
Cheers,
--
Ludovic DROLEZ Free&ALter Soft
152, rue de Grigy - Technopole Metz 2000 57070 METZ
tel : 03 87 75 55 21 fax : 03 87 75 19 26
- numeric keypad bug,
Ludovic Drolez <=