Changeset 21b6307 in mainline for kernel/arch/amd64/src/amd64.c


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/amd64/src/amd64.c

    r6bbe470 r21b6307  
    222222         * Initialize the ns16550 controller.
    223223         */
     224#ifdef CONFIG_NS16550_OUT
     225        outdev_t *ns16550_out;
     226        outdev_t **ns16550_out_ptr = &ns16550_out;
     227#else
     228        outdev_t **ns16550_out_ptr = NULL;
     229#endif
    224230        ns16550_instance_t *ns16550_instance
    225             = ns16550_init((ns16550_t *) NS16550_BASE, IRQ_NS16550, NULL, NULL);
     231            = ns16550_init((ns16550_t *) NS16550_BASE, IRQ_NS16550, NULL, NULL,
     232            ns16550_out_ptr);
    226233        if (ns16550_instance) {
    227234#ifdef CONFIG_NS16550
     
    235242#endif
    236243#ifdef CONFIG_NS16550_OUT
    237                 outdev_t *ns16550_out = ns16550_output(ns16550_instance);
    238244                if (ns16550_out) {
    239245                        stdout_wire(ns16550_out);
Note: See TracChangeset for help on using the changeset viewer.