Changeset 411b6a6 in mainline for kernel/arch/sparc64/src/sparc64.c


Ignore:
Timestamp:
2009-03-07T16:08:40Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4c84368e
Parents:
e06da7e
Message:

Complete emancipation of kernel serial controller drivers (i8042, ns16550 and
z8530). Provide a common keyboard module for PC and Sun keyboards. The serial
line module is still to follow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/sparc64.c

    re06da7e r411b6a6  
    9090                 */
    9191                irq_init(1 << 11, 128);
    92 
    93                 standalone_sparc64_console_init();
    9492        }
    9593}
     
    105103void arch_post_smp_init(void)
    106104{
    107         static thread_t *t = NULL;
     105        if (config.cpu_active == 1) {
     106                standalone_sparc64_console_init();
    108107
    109         if (!t) {
    110                 /*
    111                  * Create thread that polls keyboard.
    112                  */
    113                 t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll", true);
     108                /* Create thread that polls keyboard.
     109                 * XXX: this is only used by sgcn now
     110                 */
     111                thread_t *t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll",
     112                    true);
    114113                if (!t)
    115114                        panic("Cannot create kkbdpoll.");
Note: See TracChangeset for help on using the changeset viewer.