source: rtems/c/src/aclocal/bsp-bootcards-handles-ram-allocation.m4 @ b1ded240

4.104.115
Last change on this file since b1ded240 was 61b7dae, checked in by Joel Sherrill <joel.sherrill@…>, on 05/15/08 at 16:16:29

2008-05-15 Joel Sherrill <joel.sherrill@…>

  • aclocal/bsp-bootcards-handles-ram-allocation.m4: New file.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1dnl $Id$
2dnl
3
4dnl RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION - some autoconf voodoo to
5dnl indicate that the BSP is using the shared RAM allocation code in
6dnl bootcard.c.  This is a new way of doing things that will reduce the
7dnl size of each BSP's bspstart.c and open the door for another round
8dnl of benefits for BSPs that use this scheme.
9dnl
10dnl Benefits:
11dnl   - Reduced code in bspstart.c
12dnl   - Can optionally dirty memory at boot time.
13dnl
14dnl NOTE: This macro is intended to be temporary.  When most of the
15dnl       BSPs use the new shared method, we need to either bulk edit
16dnl       the remaining BSPs to eliminate code using the old way. Or
17dnl       switch the sense of this macro to be required on BSPs using
18dnl       the old way.
19dnl
20dnl       AGAIN: This is intended to be temporary.  Please help by
21dnl              updating BSPs to use the new scheme.
22
23dnl To be used in bsp-configure scripts
24
25AC_DEFUN([RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION],
26 [AC_DEFINE_UNQUOTED([BSP_BOOTCARD_HANDLES_RAM_ALLOCATION],
27  [1],
28  [BSP uses shared logic in bootcard.c]
29)
30RTEMS_BSPOPTS_SET([BSP_DIRTY_MEMORY],[*],[0])
31RTEMS_BSPOPTS_HELP([BSP_DIRTY_MEMORY],
32[If defined, then PSIM will put a non-zero pattern into the RTEMS
33 Workspace and C program heap.  This should assist in finding
34 code that assumes memory starts set to zero.])
35])
Note: See TracBrowser for help on using the repository browser.