blob: 661fe1d5bcbe9e1050478518d48f51003097ded9 (
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
47
48
49
50
51
52
|
/*
* Simple test program -- simplified version of sample test hello.
*
* $Id$
*/
#include <bsp.h>
#include <stdlib.h>
#include <stdio.h>
#include <freebsd/bsd.h>
rtems_task Init(
rtems_task_argument ignored
)
{
printf( "\n\n*** LIBFREEBSD INITIALIZATION TEST ***\n" );
/*
* BSD must support the new "shared IRQ PIC implementation" at this point.
* BSPs must also provide rtems_interrupt_server_initialize() which
* just requires including irq-server.[ch] in their build.
*/
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_NEEDS_CLOCK_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 32
#define CONFIGURE_UNLIMITED_OBJECTS
#define CONFIGURE_UNIFIED_WORK_AREAS
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INIT
#include <rtems/confdefs.h>
#include <freebsd/machine/rtems-bsd-sysinit.h>
#include "nic-sysinit.h"
/* end of file */
|