hi all,

i am working in a board like assabet, i have enabled the pc keyboard on
it. Later i found the  the caps
num & scr lock leds are not glowing. so i attached the following code in
handle_kbd_event() function.

/*  186,197,198 are the break codes for the caps, num ,and scroll lock
*/

      if(scancode==186 || scancode ==197 || scancode==198)
      {
            if(scancode==186)
                    caps=!caps;
            if(scancode==197)
                    num==!num;
            if(scancode==198)
                    scr==!scr;
            kbd_write_output_w(0xED);
            if(kbd_wait_input()==0xFA);
                kbd_write_output_w((caps << 2) || (num << 1) || (scr));

    }


here the leds are working fine upto the login prompt (login: ). when i
entered into root, i gets hanged
leaving the message "bad pc value ... killing interrupt
handler...interrupt handler not in sync.."

can any one help me how to get the leds working.








_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
http://www.arm.linux.org.uk/armlinux/mailinglists.php
Please visit the above addresses for information on this list.

Reply via email to