Rev 3718 | Rev 3844 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3718 | Rev 3766 | ||
---|---|---|---|
Line 141... | Line 141... | ||
141 | 141 | ||
142 | ch = ski_getchar(); |
142 | ch = ski_getchar(); |
143 | if(ch == '\r') |
143 | if(ch == '\r') |
144 | ch = '\n'; |
144 | ch = '\n'; |
145 | if (ch) { |
145 | if (ch) { |
- | 146 | if (ski_kbd_irq.notif_cfg.notify && |
|
146 | if (ski_kbd_irq.notif_cfg.notify && ski_kbd_irq.notif_cfg.answerbox) { |
147 | ski_kbd_irq.notif_cfg.answerbox) { |
147 | chardev_push_character(&ski_uconsole, ch); |
148 | chardev_push_character(&ski_uconsole, ch); |
148 | ipc_irq_send_notif(&ski_kbd_irq); |
149 | ipc_irq_send_notif(&ski_kbd_irq); |
149 | } else { |
150 | } else { |
150 | chardev_push_character(&ski_console, ch); |
151 | chardev_push_character(&ski_console, ch); |
151 | } |
152 | } |
Line 154... | Line 155... | ||
154 | interrupts_restore(ipl); |
155 | interrupts_restore(ipl); |
155 | return; |
156 | return; |
156 | } |
157 | } |
157 | 158 | ||
158 | if (last) { |
159 | if (last) { |
- | 160 | if (ski_kbd_irq.notif_cfg.notify && |
|
159 | if (ski_kbd_irq.notif_cfg.notify && ski_kbd_irq.notif_cfg.answerbox) { |
161 | ski_kbd_irq.notif_cfg.answerbox) { |
160 | chardev_push_character(&ski_uconsole, 0); |
162 | chardev_push_character(&ski_uconsole, 0); |
161 | ipc_irq_send_notif(&ski_kbd_irq); |
163 | ipc_irq_send_notif(&ski_kbd_irq); |
162 | } |
164 | } |
163 | last = 0; |
165 | last = 0; |
164 | } |
166 | } |