Ignore:
Timestamp:
2009-03-23T21:46:40Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c3ebc47
Parents:
a5e5030
Message:

Revive kernel notifications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/kconsole.c

    ra5e5030 r05641a9e  
    8888static char history[KCONSOLE_HISTORY][MAX_CMDLINE] = {};
    8989
    90 /*
    91  * For now, we use 0 as INR.
    92  * However, it is therefore desirable to have architecture specific
    93  * definition of KCONSOLE_VIRT_INR in the future.
    94  */
    95 #define KCONSOLE_VIRT_INR  0
    96 
    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 
    11490/** Initialize kconsole data structures
    11591 *
     
    126102                history[i][0] = '\0';
    127103}
    128 
    129 
    130 /** Initialize kconsole notification mechanism
    131  *
    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 
    149104
    150105/** Register kconsole command.
Note: See TracChangeset for help on using the changeset viewer.