mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 20:59:40 +08:00
42 lines
881 B
C
42 lines
881 B
C
/*
|
|
* Simple test program -- simplified version of sample test hello.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#include <bsp.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <rtems/freebsd/bsd.h>
|
|
|
|
int maxproc;
|
|
int ngroups_max;
|
|
|
|
void prison_hold() {}
|
|
void prison_free() {}
|
|
|
|
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 */
|