source: rtems-libbsd/testsuite/include/rtems/bsd/test/default-init.h @ a1e0a41

4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change on this file since a1e0a41 was a1e0a41, checked in by Sebastian Huber <sebastian.huber@…>, on 10/09/13 at 13:41:09

Make default test initialization task preemptive

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*
2 *  Shared Network Test Initialization File
3 */
4
5#ifndef RTEMS_BSD_TEST_DEFAULT_INIT_H
6#define RTEMS_BSD_TEST_DEFAULT_INIT_H
7
8#include <bsp.h>
9#include <stdlib.h>
10#include <stdio.h>
11#include <rtems/bsd/bsd.h>
12
13rtems_task Init(
14  rtems_task_argument ignored
15)
16{
17  puts( "*** " TEST_NAME " TEST ***" );
18
19  /*
20   *  BSD must support the new "shared IRQ PIC implementation" at this point.
21   *  BSPs must also provide rtems_interrupt_server_initialize() which
22   *  just requires including irq-server.[ch] in their build.
23   */
24
25  rtems_bsd_initialize_with_interrupt_server();
26
27  test_main();
28  /* should not return */
29
30  printf( "*** Test main returned and should not have ***\n" );
31  exit( 5 );
32}
33
34/* configuration information */
35
36#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
37#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
38
39#define CONFIGURE_APPLICATION_NEEDS_LIBBLOCK
40#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
41
42#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 32
43
44#define CONFIGURE_UNLIMITED_OBJECTS
45#define CONFIGURE_UNIFIED_WORK_AREAS
46
47#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
48
49#define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_DEFAULT_MODES
50
51#define CONFIGURE_INIT
52#include <rtems/confdefs.h>
53
54/*
55 * FreeBSD TCP/IP Initialization
56 */
57
58#include <machine/rtems-bsd-sysinit.h>
59
60#define CONFIGURE_NEED_NET
61/* only include FXP and PCI for i386/pc386 for debug on qemu (for now) */
62#if defined(i386)
63  #define CONFIGURE_NEED_PCIB
64  #define CONFIGURE_NEED_NET_IF_FXP
65#endif
66
67/*
68 * This is correct for the PC
69 */
70char static_hints[] = {
71  "hint.fxp.0.prefer_iomap=1\0\n"
72};
73
74#include <rtems/bsd/test/nic-sysinit.h>
75
76/* end of file */
77#endif /* RTEMS_BSD_TEST_DEFAULT_INIT_H */
Note: See TracBrowser for help on using the repository browser.