Rev 3941 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3941 | Rev 3951 | ||
---|---|---|---|
Line 185... | Line 185... | ||
185 | * |
185 | * |
186 | * @param irq IRQ information. |
186 | * @param irq IRQ information. |
187 | */ |
187 | */ |
188 | static void gxemul_irq_handler(irq_t *irq) |
188 | static void gxemul_irq_handler(irq_t *irq) |
189 | { |
189 | { |
190 | if ((irq->notif_cfg.notify) && (irq->notif_cfg.answerbox)) { |
- | |
191 | ipc_irq_send_notif(irq); |
- | |
192 | } else { |
- | |
193 | char ch = 0; |
190 | char ch = 0; |
194 | 191 | ||
195 | ch = *((char *) gxemul_hw_map.kbd); |
192 | ch = *((char *) gxemul_hw_map.kbd); |
196 | if (ch == '\r') { |
193 | if (ch == '\r') { |
197 | ch = '\n'; |
194 | ch = '\n'; |
198 | } |
- | |
199 | if (ch == 0x7f) { |
- | |
200 | ch = '\b'; |
- | |
201 | } |
- | |
202 | chardev_push_character(&console, ch); |
- | |
203 | } |
195 | } |
- | 196 | if (ch == 0x7f) { |
|
- | 197 | ch = '\b'; |
|
- | 198 | } |
|
- | 199 | chardev_push_character(&console, ch); |
|
204 | } |
200 | } |
205 | 201 | ||
206 | static irq_ownership_t gxemul_claim(irq_t *irq) |
202 | static irq_ownership_t gxemul_claim(irq_t *irq) |
207 | { |
203 | { |
208 | return IRQ_ACCEPT; |
204 | return IRQ_ACCEPT; |