Changeset 00c8792 in rtems-libbsd


Ignore:
Timestamp:
Oct 30, 2015, 7:03:57 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
5edcb9e
Parents:
55d372f
git-author:
Sebastian Huber <sebastian.huber@…> (10/30/15 07:03:57)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/26/16 13:20:59)
Message:

Initialize interrupt server early

This enables its use before the Nexus device exists.

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • libbsd.py

    r55d372f r00c8792  
    7575            'rtems/rtems-bsd-get-task-stack-size.c',
    7676            'rtems/rtems-bsd-init.c',
     77            'rtems/rtems-bsd-irqs.c',
    7778            'rtems/rtems-bsd-jail.c',
    7879            'rtems/rtems-bsd-log.c',
  • libbsd_waf.py

    r55d372f r00c8792  
    987987              'rtemsbsd/rtems/rtems-bsd-get-task-stack-size.c',
    988988              'rtemsbsd/rtems/rtems-bsd-init.c',
     989              'rtemsbsd/rtems/rtems-bsd-irqs.c',
    989990              'rtemsbsd/rtems/rtems-bsd-jail.c',
    990991              'rtemsbsd/rtems/rtems-bsd-log.c',
  • rtemsbsd/rtems/rtems-bsd-nexus.c

    r55d372f r00c8792  
    7272#endif
    7373
     74#ifndef DISABLE_INTERRUPT_EXTENSION
     75SYSINIT_REFERENCE(irqs);
     76#endif
     77
    7478static int
    7579nexus_probe(device_t dev)
    7680{
    77         static const char name[] = "IRQS";
    78         rtems_status_code status;
    7981        int err;
    8082        const rtems_bsd_device *nd;
    8183
    8284        device_set_desc(dev, "RTEMS Nexus device");
    83 
    84 #ifndef DISABLE_INTERRUPT_EXTENSION
    85         status = rtems_interrupt_server_initialize(
    86                 rtems_bsd_get_task_priority(name),
    87                 rtems_bsd_get_task_stack_size(name),
    88                 RTEMS_DEFAULT_MODES,
    89                 RTEMS_DEFAULT_ATTRIBUTES,
    90                 NULL
    91         );
    92         BSD_ASSERT(status == RTEMS_SUCCESSFUL);
    93 #endif
    9485
    9586        mem_rman.rm_start = 0;
Note: See TracChangeset for help on using the changeset viewer.