source: rtems/testsuites/libtests/dl03/init.c @ 6c9f017

5
Last change on this file since 6c9f017 was 6c9f017, checked in by Chris Johns <chrisj@…>, on 02/02/19 at 04:09:53

libdl: Add powerpc large memory and small data support.

  • Add support for architecure sections that can be handled by the architecture back end.
  • Add trampoline/fixup support for PowerPC. This means the PowerPC now supports large memory loading of applications.
  • Add a bit allocator to manage small block based regions of memory.
  • Add small data (sdata/sbss) support for the PowerPC. The support makes the linker allocated small data region of memory a global resource available to libdl loaded object files.

Updates #3687
Updates #3685

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*
2 * Copyright (c) 2014 Chris Johns <chrisj@rtems.org>.  All rights reserved.
3 *
4 * The license and distribution terms for this file may be
5 * found in the file LICENSE in this distribution or at
6 * http://www.rtems.org/license/LICENSE.
7 */
8
9#ifdef HAVE_CONFIG_H
10  #include "config.h"
11#endif
12
13#include "tmacros.h"
14
15#include <errno.h>
16#include <string.h>
17#include <stdint.h>
18#include <unistd.h>
19
20#include "dl-cache.h"
21#include "dl-bit-alloc.h"
22
23const char rtems_test_name[] = "libdl (RTL) 3";
24
25/* forward declarations to avoid warnings */
26static rtems_task Init(rtems_task_argument argument);
27
28static int test(void)
29{
30  int ret;
31  ret = dl_cache_test();
32  if (ret)
33    rtems_test_exit(ret);
34  ret = dl_bit_alloc_test();
35  if (ret)
36    rtems_test_exit(ret);
37  return 0;
38}
39
40static void Init(rtems_task_argument arg)
41{
42  TEST_BEGIN();
43
44  test();
45
46  TEST_END();
47
48  rtems_test_exit(0);
49}
50
51#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
52#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
53
54#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
55
56#define CONFIGURE_MAXIMUM_TASKS 1
57
58#define CONFIGURE_MAXIMUM_SEMAPHORES 1
59
60#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
61
62#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
63
64#define CONFIGURE_INIT_TASK_STACK_SIZE (8U * 1024U)
65
66#define CONFIGURE_INIT_TASK_ATTRIBUTES   (RTEMS_DEFAULT_ATTRIBUTES | RTEMS_FLOATING_POINT)
67
68#define CONFIGURE_INIT
69
70#include <rtems/confdefs.h>
Note: See TracBrowser for help on using the repository browser.