Changeset e96e008 in rtems-libbsd for rtemsbsd/rtems/rtems-bsd-nexus.c


Ignore:
Timestamp:
Aug 29, 2014, 9:15:00 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, b96abfd647154f10ea8f7fac68e25676636eded5, 13421d06177df03916665bb2f3a7fcadc51a951b, d964a6703c705cc92fd053bcefc08bb3b6baa0e2, freebsd-9.3, b1e67a2bdc575f7f6e0af4922d7adb91545827ca
Children:
a197a48
Parents:
7e982cf
git-author:
Sebastian Huber <sebastian.huber@…> (08/29/14 09:15:00)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/17/14 11:59:15)
Message:

nexus: Add DISABLE_INTERRUPT_EXTENSION

Add an easy way to avoid the interrupt extension API for BSPs that do
not support it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/rtems/rtems-bsd-nexus.c

    r7e982cf re96e008  
    5353#include <rtems/irq-extension.h>
    5454
     55/* #define DISABLE_INTERRUPT_EXTENSION */
     56
    5557RTEMS_STATIC_ASSERT(SYS_RES_MEMORY == RTEMS_BSD_RES_MEMORY, RTEMS_BSD_RES_MEMORY);
    5658
     
    7072        device_set_desc(dev, "RTEMS Nexus device");
    7173
     74#ifndef DISABLE_INTERRUPT_EXTENSION
    7275        status = rtems_interrupt_server_initialize(
    7376                BSD_TASK_PRIORITY_INTERRUPT,
     
    7881        );
    7982        BSD_ASSERT(status == RTEMS_SUCCESSFUL);
     83#endif
    8084
    8185        mem_rman.rm_start = 0;
     
    198202{
    199203        int err;
     204#ifndef DISABLE_INTERRUPT_EXTENSION
    200205        struct nexus_intr *ni;
    201206
     
    233238                err = ENOMEM;
    234239        }
     240#else
     241        err = EINVAL;
     242#endif
    235243
    236244        return (err);
     
    242250{
    243251        int err;
     252#ifndef DISABLE_INTERRUPT_EXTENSION
    244253        struct nexus_intr *ni;
    245254        rtems_status_code sc;
     
    261270            RTEMS_INTERRUPT_UNIQUE, rh, ra);
    262271        err = sc == RTEMS_SUCCESSFUL ? 0 : EINVAL;
     272#else
     273        err = EINVAL;
     274#endif
    263275
    264276        return (err);
Note: See TracChangeset for help on using the changeset viewer.