Changeset 9446f39 in mainline
- Timestamp:
- 2009-02-21T19:22:54Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bffa876e
- Parents:
- 00eace3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/drivers/gxemul.c
r00eace3 r9446f39 188 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); 196 if (ch == '\r') { 197 ch = '\n'; 198 } 199 if (ch == 0x7f) { 200 ch = '\b'; 201 } 202 chardev_push_character(&console, ch); 203 } 192 ch = *((char *) gxemul_hw_map.kbd); 193 if (ch == '\r') { 194 ch = '\n'; 195 } 196 if (ch == 0x7f) { 197 ch = '\b'; 198 } 199 chardev_push_character(&console, ch); 204 200 } 205 201 -
uspace/srv/kbd/port/gxemul.c
r00eace3 r9446f39 43 43 static irq_cmd_t gxemul_cmds[] = { 44 44 { 45 CMD_MEM_READ_1, 46 (void *) 0, 47 0, 48 2 45 .cmd = CMD_PIO_READ_8, 46 .addr = (void *) 0, /* will be patched in run-time */ 47 .dstarg = 2, 48 }, 49 { 50 .cmd = CMD_ACCEPT 49 51 } 50 52 }; 51 53 52 54 static irq_code_t gxemul_kbd = { 53 1,55 sizeof(gxemul_cmds) / sizeof(irq_cmd_t), 54 56 gxemul_cmds 55 57 };
Note:
See TracChangeset
for help on using the changeset viewer.