Changeset ff0e354 in mainline for uspace/drv/ohci/hc.c


Ignore:
Timestamp:
2011-04-09T13:27:53Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8790650
Parents:
112d159
Message:

Postpone launching of interrupt emulator after everything else is initialized

Fixes crash with devices connected on startup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/hc.c

    r112d159 rff0e354  
    108108            ret, str_error(ret));
    109109
     110
     111        hc_gain_control(instance);
     112
     113        rh_init(&instance->rh, dev, instance->registers);
     114
     115        hc_init_memory(instance);
     116        hc_init_hw(instance);
     117
    110118        if (!interrupts) {
    111119                instance->interrupt_emulator =
     
    113121                fibril_add_ready(instance->interrupt_emulator);
    114122        }
    115 
    116         hc_gain_control(instance);
    117 
    118         rh_init(&instance->rh, dev, instance->registers);
    119 
    120         hc_init_memory(instance);
    121         hc_init_hw(instance);
    122123
    123124        /* TODO: implement */
Note: See TracChangeset for help on using the changeset viewer.