summaryrefslogtreecommitdiffstats
path: root/testsuite/link01/test.c
blob: da25c10a4f714239e9d20acba5418e9237f5745f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
 *  Simple test program -- simplified version of sample test hello.
 *
 *  $Id$
 */

#include <bsp.h>
#include <stdlib.h>
#include <stdio.h>
#include <freebsd/bsd.h>

/* needed by rtems-bsd-resource.c */
int maxproc;

/* needed by rtems-bsd-prot.c */
int ngroups_max;

/* needed by rtems-bsd-prot.c */
void prison_hold() {}
void prison_free() {}

/* needed by rtems-bsd-init-with-irq.c */
void rtems_interrupt_server_initialize(void) { }

rtems_task Init(
  rtems_task_argument ignored
)
{
  printf( "\n\n*** LIBFREEBSD INITIALIZATION TEST ***\n" );
  rtems_bsd_initialize_with_interrupt_server();
  printf( "*** END OF LIBFREEBSD INITIALIZATION TEST ***\n" );
  exit( 0 );
}

/* configuration information */

/* NOTICE: the clock driver is explicitly disabled */
#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER

#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_MAXIMUM_TASKS 1

#define CONFIGURE_INIT
#include <rtems/confdefs.h>
/* end of file */