Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123107
b: refs/heads/master
c: 368c1e3
h: refs/heads/master
i:
  123105: 29d0848
  123103: abf7141
v: v3
  • Loading branch information
Hendrik Brueckner authored and Paul Mackerras committed Dec 21, 2008
1 parent 405c26f commit 3cc7271
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 532774ec7fa396da20ca724c0cf83d93ee76622f
refs/heads/master: 368c1e3249afe0e59097e7df664435ae55fb9f8d
7 changes: 5 additions & 2 deletions trunk/drivers/char/hvc_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,11 @@ int hvc_poll(struct hvc_struct *hp)
/* Handle the SysRq Hack */
/* XXX should support a sequence */
if (buf[i] == '\x0f') { /* ^O */
sysrq_pressed = 1;
continue;
/* if ^O is pressed again, reset
* sysrq_pressed and flip ^O char */
sysrq_pressed = !sysrq_pressed;
if (sysrq_pressed)
continue;
} else if (sysrq_pressed) {
handle_sysrq(buf[i], tty);
sysrq_pressed = 0;
Expand Down

0 comments on commit 3cc7271

Please sign in to comment.