2005-07-06 Ralf Corsepius <ralf.corsepius@rtems.org>

* console/keyboard.c: Apply CHAR_BIT to compute BITS_PER_LONG.
This commit is contained in:
Ralf Corsepius
2005-07-06 11:34:10 +00:00
parent 320124feb5
commit 63a45384a5
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2005-07-06 Ralf Corsepius <ralf.corsepius@rtems.org>
* console/keyboard.c: Apply CHAR_BIT to compute BITS_PER_LONG.
2005-05-26 Ralf Corsepius <ralf.corsepius@rtems.org>
* include/bsp.h: New header guard.

View File

@@ -4,6 +4,7 @@
* Rosimildo da Silva: rdasilva@connecttel.com
*/
#include <limits.h>
#include <sys/types.h>
#include <rtems/keyboard.h>
#include "i386kbd.h"
@@ -74,7 +75,7 @@ int test_bit(int nr, unsigned long * addr)
* in this module: prev_scancode, shift_state, diacr, npadch, dead_key_next.
* (last_console is now a global variable)
*/
#define BITS_PER_LONG 32
#define BITS_PER_LONG (sizeof(long)*CHAR_BIT)
/* shift state counters.. */
static unsigned char k_down[NR_SHIFT] = {0, };