Changeset 05641a9e in mainline for kernel/generic/src/console/kconsole.c
- Timestamp:
- 2009-03-23T21:46:40Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c3ebc47
- Parents:
- a5e5030
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/kconsole.c
ra5e5030 r05641a9e 88 88 static char history[KCONSOLE_HISTORY][MAX_CMDLINE] = {}; 89 89 90 /*91 * For now, we use 0 as INR.92 * However, it is therefore desirable to have architecture specific93 * definition of KCONSOLE_VIRT_INR in the future.94 */95 #define KCONSOLE_VIRT_INR 096 97 bool kconsole_notify = false;98 irq_t kconsole_irq;99 100 101 /** Allways refuse IRQ ownership.102 *103 * This is not a real IRQ, so we always decline.104 *105 * @return Always returns IRQ_DECLINE.106 *107 */108 static irq_ownership_t kconsole_claim(irq_t *irq)109 {110 return IRQ_DECLINE;111 }112 113 114 90 /** Initialize kconsole data structures 115 91 * … … 126 102 history[i][0] = '\0'; 127 103 } 128 129 130 /** Initialize kconsole notification mechanism131 *132 * Initialize the virtual IRQ notification mechanism.133 *134 */135 void kconsole_notify_init(void)136 {137 sysinfo_set_item_val("kconsole.present", NULL, true);138 sysinfo_set_item_val("kconsole.inr", NULL, KCONSOLE_VIRT_INR);139 140 irq_initialize(&kconsole_irq);141 kconsole_irq.devno = device_assign_devno();142 kconsole_irq.inr = KCONSOLE_VIRT_INR;143 kconsole_irq.claim = kconsole_claim;144 irq_register(&kconsole_irq);145 146 kconsole_notify = true;147 }148 149 104 150 105 /** Register kconsole command.
Note:
See TracChangeset
for help on using the changeset viewer.