source: rtems-libbsd/testsuite/link01/test.c @ 336762e

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since 336762e was 336762e, checked in by Joel Sherrill <joel.sherrill@…>, on 03/27/12 at 22:07:19

Remove dummy symbols in link01 test

+ add symbol where needed
+ use as much as possible from rtems-bsd-symbols.c

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 *  Simple test program -- simplified version of sample test hello.
3 *
4 *  $Id$
5 */
6
7#include <bsp.h>
8#include <stdlib.h>
9#include <stdio.h>
10#include <freebsd/bsd.h>
11
12/*
13 * Methods used to make sure the nic drivers
14 * are pulled into the executable.
15 */
16// extern int _bsd_re_pcimodule_sys_init();
17// extern int _bsd_fxp_pcimodule_sys_init();
18
19rtems_task Init(
20  rtems_task_argument ignored
21)
22{
23  printf( "\n\n*** LIBFREEBSD INITIALIZATION TEST ***\n" );
24  /*
25   *  BSD must support the new "shared IRQ PIC implementation" at this point.
26   *  BSPs must also provide rtems_interrupt_server_initialize() which
27   *  just requires including irq-server.[ch] in their build.
28   */
29
30  rtems_bsd_initialize_with_interrupt_server();
31
32  printf("Nic Driver Addresses\n");
33  // printf("RealTek %p\n", &_bsd_re_pcimodule_sys_init );
34  // printf("EtherExpress k %p\n", &_bsd_fxp_pcimodule_sys_init );
35
36  printf( "*** END OF LIBFREEBSD INITIALIZATION TEST ***\n" );
37  exit( 0 );
38}
39
40/* configuration information */
41
42/* NOTICE: the clock driver is explicitly disabled */
43#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
44#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
45
46#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
47#define CONFIGURE_MAXIMUM_TASKS 1
48
49#define CONFIGURE_INIT
50#include <rtems/confdefs.h>
51/* end of file */
Note: See TracBrowser for help on using the repository browser.