Changeset 00aece0 in mainline for uspace/srv/hw/irc/apic/apic.c


Ignore:
Timestamp:
2012-02-18T16:47:38Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4449c6c
Parents:
bd5f3b7 (diff), f943dd3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/irc/apic/apic.c

    rbd5f3b7 r00aece0  
    133133        // FIXME: get the map from the kernel, even though this may work
    134134        //        for simple cases
     135        if (irq == 0)
     136                return 2;
    135137        return irq;
    136138}
     
    206208        }
    207209
    208         if (pio_enable((void *) IO_APIC_BASE, IO_APIC_SIZE,
    209             (void **) &io_apic) != EOK)
     210        int rc = pio_enable((void *) IO_APIC_BASE, IO_APIC_SIZE,
     211                (void **) &io_apic);
     212        if (rc != EOK) {
     213                printf("%s: Failed to enable PIO for APIC: %d\n", NAME, rc);
    210214                return false;   
     215        }
    211216       
    212217        async_set_client_connection(apic_connection);
Note: See TracChangeset for help on using the changeset viewer.