1 | dnl $Id$ |
---|
2 | dnl |
---|
3 | |
---|
4 | dnl RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION - some autoconf voodoo to |
---|
5 | dnl indicate that the BSP is using the shared RAM allocation code in |
---|
6 | dnl bootcard.c. This is a new way of doing things that will reduce the |
---|
7 | dnl size of each BSP's bspstart.c and open the door for another round |
---|
8 | dnl of benefits for BSPs that use this scheme. |
---|
9 | dnl |
---|
10 | dnl Benefits: |
---|
11 | dnl - Reduced code in bspstart.c |
---|
12 | dnl - Can optionally dirty memory at boot time. |
---|
13 | dnl |
---|
14 | dnl NOTE: This macro is intended to be temporary. When most of the |
---|
15 | dnl BSPs use the new shared method, we need to either bulk edit |
---|
16 | dnl the remaining BSPs to eliminate code using the old way. Or |
---|
17 | dnl switch the sense of this macro to be required on BSPs using |
---|
18 | dnl the old way. |
---|
19 | dnl |
---|
20 | dnl AGAIN: This is intended to be temporary. Please help by |
---|
21 | dnl updating BSPs to use the new scheme. |
---|
22 | |
---|
23 | dnl To be used in bsp-configure scripts |
---|
24 | |
---|
25 | AC_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 | ) |
---|
30 | RTEMS_BSPOPTS_SET([BSP_DIRTY_MEMORY],[*],[0]) |
---|
31 | RTEMS_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 | ]) |
---|