Rev 577 | Rev 606 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 577 | Rev 590 | ||
|---|---|---|---|
| Line 109... | Line 109... | ||
| 109 | 109 | ||
| 110 | chardev_initialize("serial_console", &console, &serial_ops); |
110 | chardev_initialize("serial_console", &console, &serial_ops); |
| 111 | console.data = sd; |
111 | console.data = sd; |
| 112 | kb_enabled = true; |
112 | kb_enabled = true; |
| 113 | 113 | ||
| 114 | // exc_register(2, "serial_drvr", serial_interrupt); |
114 | // int_register(2, "serial_drvr", serial_interrupt); |
| 115 | /* I don't know why, but the serial interrupts simply |
115 | /* I don't know why, but the serial interrupts simply |
| 116 | * don't work on simics |
116 | * don't work on simics |
| 117 | */ |
117 | */ |
| 118 | old_timer = exc_register(TIMER_IRQ, "serial_drvr_poll", timer_replace); |
118 | old_timer = int_register(TIMER_IRQ, "serial_drvr_poll", timer_replace); |
| 119 | 119 | ||
| 120 | 120 | ||
| 121 | return &console; |
121 | return &console; |
| 122 | 122 | ||
| 123 | } |
123 | } |