Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset e63a4e1 in mainline for uspace/drv/vhc/hc.c


Ignore:
Timestamp:
2010-12-15T22:02:26Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
Children:
f37f811
Parents:
774afaae
Message:

A bit clean main() in VHC

File:
1 edited

Legend:

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

    r774afaae re63a4e1  
    102102/** Host controller manager main function.
    103103 */
    104 void hc_manager(void)
     104static int hc_manager_fibril(void *arg)
    105105{
    106106        list_initialize(&transaction_list);
     
    139139                free(transaction);
    140140        }
     141
     142        assert(false && "unreachable");
     143        return EOK;
     144}
     145
     146void hc_manager(void)
     147{
     148        fid_t fid = fibril_create(hc_manager_fibril, NULL);
     149        if (fid == 0) {
     150                printf(NAME ": failed to start HC manager fibril\n");
     151                return;
     152        }
     153        fibril_add_ready(fid);
    141154}
    142155
Note: See TracChangeset for help on using the changeset viewer.