sysrq_bugfix.patch

来自「Linux-2.6.18内核调试工具补丁程序KGDB。」· PATCH 代码 · 共 22 行

PATCH
22
字号
It is possible that when SysRq-G is triggered via the keyboard that we willmiss the "up" event and once KGDB lets the kernel go another SysRq will berequired to clear this, without this change.Signed-off-by: Tom Rini <trini@kernel.crashing.org> drivers/char/keyboard.c |    1 + 1 file changed, 1 insertion(+)Index: linux-2.6.15-rc4/drivers/char/keyboard.c===================================================================--- linux-2.6.15-rc4.orig/drivers/char/keyboard.c+++ linux-2.6.15-rc4/drivers/char/keyboard.c@@ -1069,6 +1069,7 @@ static void kbd_keycode(unsigned int key 	} 	if (sysrq_down && down && !rep) { 		handle_sysrq(kbd_sysrq_xlate[keycode], regs, tty);+		sysrq_down = 0;		/* In case we miss the 'up' event. */ 		return; 	} #endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?