patch-2.2.7 linux/arch/m68k/mac/mackeyb.c
Next file: linux/arch/sparc/defconfig
Previous file: linux/arch/m68k/hp300/hil.c
Back to the patch index
Back to the overall index
-  Lines: 27
 -  Date:
Mon Apr 26 13:38:03 1999
 -  Orig file: 
v2.2.6/linux/arch/m68k/mac/mackeyb.c
 -  Orig date: 
Wed Jan 20 23:14:04 1999
 
diff -u --recursive --new-file v2.2.6/linux/arch/m68k/mac/mackeyb.c linux/arch/m68k/mac/mackeyb.c
@@ -60,7 +60,7 @@
 extern struct kbd_struct kbd_table[];
 
 extern void adb_bus_init(void);
-extern void handle_scancode(unsigned char);
+extern void handle_scancode(unsigned char, int);
 extern void put_queue(int);
 
 /* keyb */
@@ -387,7 +387,7 @@
 		 */
 		switch (keycode) {
 		case 0x39:
-			handle_scancode(keycode);	/* down */
+			handle_scancode(keycode, 1);	/* down */
 			up_flag = 0x80;			/* see below ... */
 		 	mark_bh(KEYBOARD_BH);
 			break;
@@ -397,7 +397,7 @@
 		}
 	}
 
-	handle_scancode(keycode + up_flag);
+	handle_scancode(keycode, !up_flag);
 }
 
 static void
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)