Rev 4137 | Rev 4173 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4137 | Rev 4148 | ||
---|---|---|---|
Line 132... | Line 132... | ||
132 | * Initialize the virtual IRQ notification mechanism. |
132 | * Initialize the virtual IRQ notification mechanism. |
133 | * |
133 | * |
134 | */ |
134 | */ |
135 | void kconsole_notify_init(void) |
135 | void kconsole_notify_init(void) |
136 | { |
136 | { |
137 | devno_t devno = device_assign_devno(); |
- | |
138 | - | ||
139 | sysinfo_set_item_val("kconsole.present", NULL, true); |
137 | sysinfo_set_item_val("kconsole.present", NULL, true); |
140 | sysinfo_set_item_val("kconsole.devno", NULL, devno); |
- | |
141 | sysinfo_set_item_val("kconsole.inr", NULL, KCONSOLE_VIRT_INR); |
138 | sysinfo_set_item_val("kconsole.inr", NULL, KCONSOLE_VIRT_INR); |
142 | 139 | ||
143 | irq_initialize(&kconsole_irq); |
140 | irq_initialize(&kconsole_irq); |
144 | kconsole_irq.devno = devno; |
141 | kconsole_irq.devno = device_assign_devno(); |
145 | kconsole_irq.inr = KCONSOLE_VIRT_INR; |
142 | kconsole_irq.inr = KCONSOLE_VIRT_INR; |
146 | kconsole_irq.claim = kconsole_claim; |
143 | kconsole_irq.claim = kconsole_claim; |
147 | irq_register(&kconsole_irq); |
144 | irq_register(&kconsole_irq); |
148 | 145 | ||
149 | kconsole_notify = true; |
146 | kconsole_notify = true; |