diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-05-15 16:16:29 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-05-15 16:16:29 +0000 |
commit | 61b7dae3d607eb327ef42966d8cea18e4e910e22 (patch) | |
tree | 7db112081a008fecc577c09b22cc3ed44f863899 /c | |
parent | 2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-61b7dae3d607eb327ef42966d8cea18e4e910e22.tar.bz2 |
2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* aclocal/bsp-bootcards-handles-ram-allocation.m4: New file.
Diffstat (limited to 'c')
-rw-r--r-- | c/src/ChangeLog | 4 | ||||
-rw-r--r-- | c/src/aclocal/bsp-bootcards-handles-ram-allocation.m4 | 35 |
2 files changed, 39 insertions, 0 deletions
diff --git a/c/src/ChangeLog b/c/src/ChangeLog index 254c9508a1..c64c7700ca 100644 --- a/c/src/ChangeLog +++ b/c/src/ChangeLog @@ -1,5 +1,9 @@ 2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com> + * aclocal/bsp-bootcards-handles-ram-allocation.m4: New file. + +2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com> + * wrapup/Makefile.am: Many BSPs do not include any .rel files now so do not fail if there are none. diff --git a/c/src/aclocal/bsp-bootcards-handles-ram-allocation.m4 b/c/src/aclocal/bsp-bootcards-handles-ram-allocation.m4 new file mode 100644 index 0000000000..b95a87d4c4 --- /dev/null +++ b/c/src/aclocal/bsp-bootcards-handles-ram-allocation.m4 @@ -0,0 +1,35 @@ +dnl $Id$ +dnl + +dnl RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION - some autoconf voodoo to +dnl indicate that the BSP is using the shared RAM allocation code in +dnl bootcard.c. This is a new way of doing things that will reduce the +dnl size of each BSP's bspstart.c and open the door for another round +dnl of benefits for BSPs that use this scheme. +dnl +dnl Benefits: +dnl - Reduced code in bspstart.c +dnl - Can optionally dirty memory at boot time. +dnl +dnl NOTE: This macro is intended to be temporary. When most of the +dnl BSPs use the new shared method, we need to either bulk edit +dnl the remaining BSPs to eliminate code using the old way. Or +dnl switch the sense of this macro to be required on BSPs using +dnl the old way. +dnl +dnl AGAIN: This is intended to be temporary. Please help by +dnl updating BSPs to use the new scheme. + +dnl To be used in bsp-configure scripts + +AC_DEFUN([RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION], + [AC_DEFINE_UNQUOTED([BSP_BOOTCARD_HANDLES_RAM_ALLOCATION], + [1], + [BSP uses shared logic in bootcard.c] +) +RTEMS_BSPOPTS_SET([BSP_DIRTY_MEMORY],[*],[0]) +RTEMS_BSPOPTS_HELP([BSP_DIRTY_MEMORY], +[If defined, then PSIM will put a non-zero pattern into the RTEMS + Workspace and C program heap. This should assist in finding + code that assumes memory starts set to zero.]) +]) |