summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/rtems/rtems-bsd-nexus.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-12-20 13:26:03 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-12-20 15:35:59 +0100
commite51bc974be8dda9098762cc7e866673ca4c35558 (patch)
treebbe3ebb171bf8d72eeefd90cca4ed15448166d21 /rtemsbsd/rtems/rtems-bsd-nexus.c
parentftpd01: Add network shell commands (diff)
downloadrtems-libbsd-e51bc974be8dda9098762cc7e866673ca4c35558.tar.bz2
Delete rtems_bsd_initialize_with_interrupt_server
Move interrupt server initialization to nexus_probe().
Diffstat (limited to 'rtemsbsd/rtems/rtems-bsd-nexus.c')
-rw-r--r--rtemsbsd/rtems/rtems-bsd-nexus.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/rtemsbsd/rtems/rtems-bsd-nexus.c b/rtemsbsd/rtems/rtems-bsd-nexus.c
index 12c5f360..1c41fa51 100644
--- a/rtemsbsd/rtems/rtems-bsd-nexus.c
+++ b/rtemsbsd/rtems/rtems-bsd-nexus.c
@@ -38,6 +38,7 @@
*/
#include <machine/rtems-bsd-kernel-space.h>
+#include <machine/rtems-bsd-thread.h>
#include <rtems/bsd/sys/param.h>
#include <rtems/bsd/sys/types.h>
@@ -62,11 +63,21 @@ static struct rman irq_rman;
static int
nexus_probe(device_t dev)
{
+ rtems_status_code status;
int err;
size_t i;
device_set_desc(dev, "RTEMS Nexus device");
+ status = rtems_interrupt_server_initialize(
+ BSD_TASK_PRIORITY_INTERRUPT,
+ BSD_MINIMUM_TASK_STACK_SIZE,
+ RTEMS_DEFAULT_MODES,
+ RTEMS_DEFAULT_ATTRIBUTES,
+ NULL
+ );
+ BSD_ASSERT(status == RTEMS_SUCCESSFUL);
+
mem_rman.rm_start = 0;
mem_rman.rm_end = ~0UL;
mem_rman.rm_type = RMAN_ARRAY;