Changeset 21b6307 in mainline for kernel/arch/ia32/src


Ignore:
Timestamp:
2012-10-31T18:26:45Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3da166f0
Parents:
6bbe470
Message:

Merge ns16550_output into ns16550_init.

File:
1 edited

Legend:

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

    r6bbe470 r21b6307  
    176176         * Initialize the ns16550 controller.
    177177         */
     178#ifdef CONFIG_NS16550_OUT
     179        outdev_t *ns16550_out;
     180        outdev_t **ns16550_out_ptr = &ns16550_out;
     181#else
     182        outdev_t **ns16550_out_ptr = NULL;
     183#endif
    178184        ns16550_instance_t *ns16550_instance
    179             = ns16550_init((ns16550_t *) NS16550_BASE, IRQ_NS16550, NULL, NULL);
     185            = ns16550_init((ns16550_t *) NS16550_BASE, IRQ_NS16550, NULL, NULL,
     186            ns16550_out_ptr);
    180187        if (ns16550_instance) {
    181188#ifdef CONFIG_NS16550
     
    189196#endif
    190197#ifdef CONFIG_NS16550_OUT
    191                 outdev_t *ns16550_out = ns16550_output(ns16550_instance);
    192198                if (ns16550_out) {
    193199                        stdout_wire(ns16550_out);
Note: See TracChangeset for help on using the changeset viewer.