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

4.115-freebsd-12freebsd-9.3
Last change on this file since 025d8f2 was 025d8f2, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 21, 2013 at 2:21:28 PM

testsuite: Enable stack checker

Increase init task stack size.

  • Property mode set to 100644
File size: 1.8 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_MAXIMUM_USER_EXTENSIONS 1
45
46#define CONFIGURE_UNLIMITED_OBJECTS
47#define CONFIGURE_UNIFIED_WORK_AREAS
48
49#define CONFIGURE_STACK_CHECKER_ENABLED
50
51#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
52
53#define CONFIGURE_INIT_TASK_STACK_SIZE (32 * 1024)
54#define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_DEFAULT_MODES
55
56#define CONFIGURE_INIT
57#include <rtems/confdefs.h>
58
59/*
60 * FreeBSD TCP/IP Initialization
61 */
62
63#include <machine/rtems-bsd-sysinit.h>
64
65/* only include FXP and PCI for i386/pc386 for debug on qemu (for now) */
66#if defined(i386)
67  #define CONFIGURE_NEED_PCIB
68  #define CONFIGURE_NEED_NET_IF_FXP
69#endif
70
71/*
72 * This is correct for the PC
73 */
74char static_hints[] = {
75  "hint.fxp.0.prefer_iomap=1\0\n"
76};
77
78#include <rtems/bsd/test/nic-sysinit.h>
79
80/* end of file */
81#endif /* RTEMS_BSD_TEST_DEFAULT_INIT_H */
Note: See TracBrowser for help on using the repository browser.