summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-05-15 15:55:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-05-15 15:55:28 +0000
commitdde1fedb0930f0c9ef02f7d76fdb086f3b22bd4a (patch)
tree8c58dab3ed7b9cf33cf720006ff0963dd9c3c151 /c/src/lib/libbsp
parent2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-dde1fedb0930f0c9ef02f7d76fdb086f3b22bd4a.tar.bz2
2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: Add capability for bootcard.c BSP Initialization Framework to ask the BSP where it has memory for the RTEMS Workspace and C Program Heap. These collectively are referred to as work area. If the BSP supports this, then it does not have to include code to split the available memory between the two areas. This reduces the amount of code in the BSP specific bspstart.c file. Additionally, the shared framework can initialize the C Library, call rtems_debug_enable(), and dirty the work area memory. Until most/all BSPs support this new capability, if the BSP supports this, it should call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac. When the transition is complete, this autoconf macro can be removed.
Diffstat (limited to 'c/src/lib/libbsp')
-rw-r--r--c/src/lib/libbsp/bfin/eZKit533/ChangeLog14
-rw-r--r--c/src/lib/libbsp/bfin/eZKit533/startup/bspstart.c4
-rw-r--r--c/src/lib/libbsp/c4x/c4xsim/ChangeLog14
-rw-r--r--c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c8
-rw-r--r--c/src/lib/libbsp/h8300/h8sim/ChangeLog14
-rw-r--r--c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c5
-rw-r--r--c/src/lib/libbsp/i386/i386ex/ChangeLog14
-rw-r--r--c/src/lib/libbsp/i386/i386ex/startup/bspstart.c5
-rw-r--r--c/src/lib/libbsp/i386/pc386/ChangeLog14
-rw-r--r--c/src/lib/libbsp/i386/pc386/startup/bspstart.c5
-rw-r--r--c/src/lib/libbsp/i386/ts_386ex/ChangeLog14
-rw-r--r--c/src/lib/libbsp/i386/ts_386ex/startup/bspstart.c4
-rw-r--r--c/src/lib/libbsp/mips/csb350/ChangeLog14
-rw-r--r--c/src/lib/libbsp/mips/csb350/startup/bspstart.c5
-rw-r--r--c/src/lib/libbsp/mips/genmongoosev/ChangeLog14
-rw-r--r--c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c5
-rw-r--r--c/src/lib/libbsp/mips/hurricane/ChangeLog14
-rw-r--r--c/src/lib/libbsp/mips/hurricane/startup/bspstart.c4
-rw-r--r--c/src/lib/libbsp/mips/rbtx4925/ChangeLog14
-rw-r--r--c/src/lib/libbsp/mips/rbtx4925/startup/bspstart.c5
-rw-r--r--c/src/lib/libbsp/mips/rbtx4938/ChangeLog14
-rw-r--r--c/src/lib/libbsp/mips/rbtx4938/startup/bspstart.c5
-rw-r--r--c/src/lib/libbsp/nios2/nios2_iss/ChangeLog14
-rw-r--r--c/src/lib/libbsp/nios2/nios2_iss/startup/bspstart.c26
-rw-r--r--c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog14
-rw-r--r--c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c4
-rw-r--r--c/src/lib/libbsp/powerpc/ep1a/ChangeLog14
-rw-r--r--c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c4
-rw-r--r--c/src/lib/libbsp/powerpc/gen5200/ChangeLog14
-rw-r--r--c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c20
-rw-r--r--c/src/lib/libbsp/powerpc/gen83xx/ChangeLog14
-rw-r--r--c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c14
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog14
-rw-r--r--c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c23
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/ChangeLog14
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c4
-rw-r--r--c/src/lib/libbsp/powerpc/ss555/ChangeLog14
-rw-r--r--c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c10
-rw-r--r--c/src/lib/libbsp/powerpc/virtex/ChangeLog14
-rw-r--r--c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c7
-rw-r--r--c/src/lib/libbsp/sh/gensh1/ChangeLog14
-rw-r--r--c/src/lib/libbsp/sh/gensh1/startup/bspstart.c4
-rw-r--r--c/src/lib/libbsp/sh/gensh2/ChangeLog14
-rw-r--r--c/src/lib/libbsp/sh/gensh2/startup/bspstart.c4
-rw-r--r--c/src/lib/libbsp/sh/gensh4/ChangeLog14
-rw-r--r--c/src/lib/libbsp/sh/gensh4/startup/bspstart.c4
-rw-r--r--c/src/lib/libbsp/sh/shsim/ChangeLog14
-rw-r--r--c/src/lib/libbsp/sh/shsim/startup/bspstart.c4
-rw-r--r--c/src/lib/libbsp/sh/simsh4/ChangeLog14
-rw-r--r--c/src/lib/libbsp/sh/simsh4/startup/bspstart.c6
-rw-r--r--c/src/lib/libbsp/unix/posix/ChangeLog14
-rw-r--r--c/src/lib/libbsp/unix/posix/startup/bspstart.c11
52 files changed, 373 insertions, 191 deletions
diff --git a/c/src/lib/libbsp/bfin/eZKit533/ChangeLog b/c/src/lib/libbsp/bfin/eZKit533/ChangeLog
index 521c823bbf..20fda6fe39 100644
--- a/c/src/lib/libbsp/bfin/eZKit533/ChangeLog
+++ b/c/src/lib/libbsp/bfin/eZKit533/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/bfin/eZKit533/startup/bspstart.c b/c/src/lib/libbsp/bfin/eZKit533/startup/bspstart.c
index a733593130..321935bb8a 100644
--- a/c/src/lib/libbsp/bfin/eZKit533/startup/bspstart.c
+++ b/c/src/lib/libbsp/bfin/eZKit533/startup/bspstart.c
@@ -105,10 +105,6 @@ void bsp_pretasking_hook(void)
unsigned long heapSize = (unsigned long)&HeapSize;
bsp_libc_init(heapStart, heapSize, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
/*
diff --git a/c/src/lib/libbsp/c4x/c4xsim/ChangeLog b/c/src/lib/libbsp/c4x/c4xsim/ChangeLog
index 18196eff9e..3ec31fe221 100644
--- a/c/src/lib/libbsp/c4x/c4xsim/ChangeLog
+++ b/c/src/lib/libbsp/c4x/c4xsim/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c b/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c
index ff19c0cf8f..ceb6464df2 100644
--- a/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c
+++ b/c/src/lib/libbsp/c4x/c4xsim/startup/bspstart.c
@@ -36,15 +36,11 @@ extern void bsp_spurious_initialize();
void bsp_pretasking_hook(void)
{
- extern void *_HeapStart;
- extern uint32_t _HeapSize;
+ extern void *_HeapStart;
+ extern uint32_t _HeapSize;
bsp_libc_init(&_HeapStart, (unsigned int) &_HeapSize, 0);
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
-
bsp_spurious_initialize();
}
diff --git a/c/src/lib/libbsp/h8300/h8sim/ChangeLog b/c/src/lib/libbsp/h8300/h8sim/ChangeLog
index f110312a87..54334a2009 100644
--- a/c/src/lib/libbsp/h8300/h8sim/ChangeLog
+++ b/c/src/lib/libbsp/h8300/h8sim/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c b/c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c
index c0793b6e22..285a0de8f5 100644
--- a/c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c
+++ b/c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c
@@ -52,11 +52,6 @@ void bsp_pretasking_hook(void)
rtems_fatal_error_occurred (('H'<<24) | ('E'<<16) | ('A'<<8) | 'P');
heapSize = (256 * 1024) - (unsigned long)(heapStart);
bsp_libc_init(heapStart, heapSize, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
-
}
/*
diff --git a/c/src/lib/libbsp/i386/i386ex/ChangeLog b/c/src/lib/libbsp/i386/i386ex/ChangeLog
index ba471afc7e..2c9c8657fd 100644
--- a/c/src/lib/libbsp/i386/i386ex/ChangeLog
+++ b/c/src/lib/libbsp/i386/i386ex/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/i386/i386ex/startup/bspstart.c b/c/src/lib/libbsp/i386/i386ex/startup/bspstart.c
index dfb1f4608f..6d571af49c 100644
--- a/c/src/lib/libbsp/i386/i386ex/startup/bspstart.c
+++ b/c/src/lib/libbsp/i386/i386ex/startup/bspstart.c
@@ -66,12 +66,7 @@ void bsp_pretasking_hook(void)
heap_size = Configuration.work_space_start -(void *) heap_start ;
heap_size &= 0xfffffff0; /* keep it as a multiple of 16 bytes */
- heap_size &= 0xfffffff0; /* keep it as a multiple of 16 bytes */
bsp_libc_init((void *) heap_start, heap_size, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
/*
diff --git a/c/src/lib/libbsp/i386/pc386/ChangeLog b/c/src/lib/libbsp/i386/pc386/ChangeLog
index d99c58eef6..6dc9ae8aae 100644
--- a/c/src/lib/libbsp/i386/pc386/ChangeLog
+++ b/c/src/lib/libbsp/i386/pc386/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-12 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c: Refactored and renamed initialization routines to
diff --git a/c/src/lib/libbsp/i386/pc386/startup/bspstart.c b/c/src/lib/libbsp/i386/pc386/startup/bspstart.c
index b92af150c8..93d1c3f9fd 100644
--- a/c/src/lib/libbsp/i386/pc386/startup/bspstart.c
+++ b/c/src/lib/libbsp/i386/pc386/startup/bspstart.c
@@ -144,11 +144,6 @@ void bsp_pretasking_hook(void)
bsp_libc_init((void *)rtemsFreeMemStart, _heap_size, 0);
rtemsFreeMemStart += _heap_size; /* HEAP_SIZE in KBytes */
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable(RTEMS_DEBUG_ALL_MASK);
-#endif /* RTEMS_DEBUG */
-
} /* bsp_pretasking_hook */
/*-------------------------------------------------------------------------+
diff --git a/c/src/lib/libbsp/i386/ts_386ex/ChangeLog b/c/src/lib/libbsp/i386/ts_386ex/ChangeLog
index 6bd474e6fa..ffe3b5eaaa 100644
--- a/c/src/lib/libbsp/i386/ts_386ex/ChangeLog
+++ b/c/src/lib/libbsp/i386/ts_386ex/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/i386/ts_386ex/startup/bspstart.c b/c/src/lib/libbsp/i386/ts_386ex/startup/bspstart.c
index dae6678c17..ef02e9014f 100644
--- a/c/src/lib/libbsp/i386/ts_386ex/startup/bspstart.c
+++ b/c/src/lib/libbsp/i386/ts_386ex/startup/bspstart.c
@@ -66,10 +66,6 @@ void bsp_pretasking_hook(void)
heap_size &= 0xfffffff0; /* keep it as a multiple of 16 bytes */
bsp_libc_init((void *) heap_start, heap_size, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
/*
diff --git a/c/src/lib/libbsp/mips/csb350/ChangeLog b/c/src/lib/libbsp/mips/csb350/ChangeLog
index a8cac788bc..c44ead42ff 100644
--- a/c/src/lib/libbsp/mips/csb350/ChangeLog
+++ b/c/src/lib/libbsp/mips/csb350/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/mips/csb350/startup/bspstart.c b/c/src/lib/libbsp/mips/csb350/startup/bspstart.c
index 6d0ca0644b..b1c3f25c7d 100644
--- a/c/src/lib/libbsp/mips/csb350/startup/bspstart.c
+++ b/c/src/lib/libbsp/mips/csb350/startup/bspstart.c
@@ -69,11 +69,6 @@ void bsp_pretasking_hook(void)
/* call rtems lib init - malloc stuff */
bsp_libc_init((void *)heap_start, heap_size, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
-
}
/*
diff --git a/c/src/lib/libbsp/mips/genmongoosev/ChangeLog b/c/src/lib/libbsp/mips/genmongoosev/ChangeLog
index fa791a6f9e..c5d176402d 100644
--- a/c/src/lib/libbsp/mips/genmongoosev/ChangeLog
+++ b/c/src/lib/libbsp/mips/genmongoosev/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c b/c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c
index ec9d48bf10..f2aa325754 100644
--- a/c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c
+++ b/c/src/lib/libbsp/mips/genmongoosev/startup/bspstart.c
@@ -53,11 +53,6 @@ void bsp_pretasking_hook(void)
unsigned long heapSize = (unsigned long)&HeapSize;
bsp_libc_init(heapStart, (uint32_t) heapSize, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
-
}
/*
diff --git a/c/src/lib/libbsp/mips/hurricane/ChangeLog b/c/src/lib/libbsp/mips/hurricane/ChangeLog
index 025a9cde01..152a901728 100644
--- a/c/src/lib/libbsp/mips/hurricane/ChangeLog
+++ b/c/src/lib/libbsp/mips/hurricane/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/mips/hurricane/startup/bspstart.c b/c/src/lib/libbsp/mips/hurricane/startup/bspstart.c
index de8df883d1..ac61c2c0f8 100644
--- a/c/src/lib/libbsp/mips/hurricane/startup/bspstart.c
+++ b/c/src/lib/libbsp/mips/hurricane/startup/bspstart.c
@@ -56,10 +56,6 @@ void bsp_pretasking_hook(void)
heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
bsp_libc_init((void *) heap_start, LIBC_HEAP_SIZE, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
extern int end; /* defined by linker */
diff --git a/c/src/lib/libbsp/mips/rbtx4925/ChangeLog b/c/src/lib/libbsp/mips/rbtx4925/ChangeLog
index 24d4f3c485..356f70bf25 100644
--- a/c/src/lib/libbsp/mips/rbtx4925/ChangeLog
+++ b/c/src/lib/libbsp/mips/rbtx4925/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/mips/rbtx4925/startup/bspstart.c b/c/src/lib/libbsp/mips/rbtx4925/startup/bspstart.c
index 0bb78d79e4..78447b3c64 100644
--- a/c/src/lib/libbsp/mips/rbtx4925/startup/bspstart.c
+++ b/c/src/lib/libbsp/mips/rbtx4925/startup/bspstart.c
@@ -55,11 +55,6 @@ void bsp_pretasking_hook(void)
heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
bsp_libc_init((void *) heap_start, LIBC_HEAP_SIZE, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
-
}
/*
diff --git a/c/src/lib/libbsp/mips/rbtx4938/ChangeLog b/c/src/lib/libbsp/mips/rbtx4938/ChangeLog
index 0a29736291..b5f5e83dad 100644
--- a/c/src/lib/libbsp/mips/rbtx4938/ChangeLog
+++ b/c/src/lib/libbsp/mips/rbtx4938/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/mips/rbtx4938/startup/bspstart.c b/c/src/lib/libbsp/mips/rbtx4938/startup/bspstart.c
index 0bb78d79e4..78447b3c64 100644
--- a/c/src/lib/libbsp/mips/rbtx4938/startup/bspstart.c
+++ b/c/src/lib/libbsp/mips/rbtx4938/startup/bspstart.c
@@ -55,11 +55,6 @@ void bsp_pretasking_hook(void)
heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
bsp_libc_init((void *) heap_start, LIBC_HEAP_SIZE, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
-
}
/*
diff --git a/c/src/lib/libbsp/nios2/nios2_iss/ChangeLog b/c/src/lib/libbsp/nios2/nios2_iss/ChangeLog
index 5917029153..9c46ec8721 100644
--- a/c/src/lib/libbsp/nios2/nios2_iss/ChangeLog
+++ b/c/src/lib/libbsp/nios2/nios2_iss/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/nios2/nios2_iss/startup/bspstart.c b/c/src/lib/libbsp/nios2/nios2_iss/startup/bspstart.c
index 04df095651..9abf8bab7e 100644
--- a/c/src/lib/libbsp/nios2/nios2_iss/startup/bspstart.c
+++ b/c/src/lib/libbsp/nios2/nios2_iss/startup/bspstart.c
@@ -54,9 +54,6 @@ extern char __alt_heap_start[];
void bsp_pretasking_hook(void)
{
unsigned long heapStart;
-#if 0
- unsigned long heapSize = (unsigned long)_HeapSize;
-#endif
unsigned long ramSpace;
heapStart = (unsigned long)Configuration.work_space_start
@@ -65,35 +62,12 @@ void bsp_pretasking_hook(void)
if (heapStart & (CPU_ALIGNMENT-1))
heapStart = (heapStart + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
-#if 0
- ramSpace = (unsigned long)_RAMBase + (unsigned long)_RAMSize - heapStart;
-#else
-#if 0
- ramSpace = SRAM_0_BASE
- + (SRAM_0_SRAM_MEMORY_SIZE * SRAM_0_SRAM_MEMORY_UNITS)
- - heapStart;
-#else
ramSpace = RAM_BASE + RAM_BYTES - heapStart;
-#endif
-#endif
/* TODO */
ramSpace -= 16384; /* Space for initial stack, not to be zeroed */
-#if 0
- if (heapSize < 10)
- heapSize = ramSpace;
- else if (heapSize > ramSpace)
- rtems_fatal_error_occurred (('H'<<24) | ('E'<<16) | ('A'<<8) | 'P');
-
- bsp_libc_init((void *)heapStart, heapSize, 0);
-#else
bsp_libc_init((void *)heapStart, ramSpace, 0);
-#endif
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
/*
diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog b/c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog
index a7d1d1a0a6..c90848bc52 100644
--- a/c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog
+++ b/c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c b/c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c
index 090b6e948f..8ea03ff62b 100644
--- a/c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c
+++ b/c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c
@@ -50,10 +50,6 @@ void bsp_pretasking_hook(void)
heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
bsp_libc_init((void *) heap_start, 64 * 1024, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
/*
diff --git a/c/src/lib/libbsp/powerpc/ep1a/ChangeLog b/c/src/lib/libbsp/powerpc/ep1a/ChangeLog
index b631c04f2a..9470c3a368 100644
--- a/c/src/lib/libbsp/powerpc/ep1a/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/ep1a/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c b/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
index 145d93e130..798bceae68 100644
--- a/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
@@ -207,10 +207,6 @@ void bsp_pretasking_hook(void)
bsp_libc_init((void *) 0, heap_size, heap_sbrk_spared);
rsPMCQ1Init();
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
void zero_bss()
diff --git a/c/src/lib/libbsp/powerpc/gen5200/ChangeLog b/c/src/lib/libbsp/powerpc/gen5200/ChangeLog
index b26275b465..30587c0e7a 100644
--- a/c/src/lib/libbsp/powerpc/gen5200/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/gen5200/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c b/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
index c8583a4d5f..52850d37af 100644
--- a/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/gen5200/startup/bspstart.c
@@ -108,10 +108,6 @@
#include <string.h>
-#ifdef STACK_CHECKER_ON
-#include <stackchk.h>
-#endif
-
#if defined(HAS_UBOOT)
bd_t *uboot_bdinfo_ptr = (bd_t *)1; /* will be overwritten from startup code */
bd_t uboot_bdinfo_copy; /* will be overwritten with copy of bdinfo */
@@ -189,24 +185,8 @@ bsp_pretasking_hook(void)
bsp_libc_init( &_HeapStart, &_HeapEnd - &_HeapStart, 0 );
#endif
-
-
-#ifdef STACK_CHECKER_ON
- /*
- * Initialize the stack bounds checker
- * We can either turn it on here or from the app.
- */
-
- Stack_check_Initialize();
-#endif
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
-
-
void bsp_predriver_hook(void)
{
#if 0
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog b/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog
index fe09aa673e..e443429530 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-15 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* network/network.c, start/start.S:
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
index f410794ad4..141fdb679c 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
@@ -106,20 +106,6 @@ bsp_pretasking_hook(void)
bsp_libc_init( BSP_heap_start,
BSP_heap_end - BSP_heap_start,
0);
-
-
-#ifdef STACK_CHECKER_ON
- /*
- * Initialize the stack bounds checker
- * We can either turn it on here or from the app.
- */
-
- Stack_check_Initialize();
-#endif
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
void bsp_calc_mem_layout()
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog b/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog
index 6ea1d39592..17b7811e86 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-15 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* irq/irq.c:
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c
index d94f4500ca..58c2ad6cf9 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c
@@ -53,10 +53,6 @@
#include <string.h>
-#ifdef STACK_CHECKER_ON
-#include <stackchk.h>
-#endif
-
SPR_RW(SPRG0)
SPR_RW(SPRG1)
@@ -187,23 +183,10 @@ bsp_pretasking_hook(void)
* the kernel and the application can be linked and burned into ROM
* independently of each other.
*/
- extern unsigned char _HeapStart;
- extern unsigned char _HeapEnd;
-
- bsp_libc_init( &_HeapStart, &_HeapEnd - &_HeapStart, 0 );
+ extern unsigned char _HeapStart;
+ extern unsigned char _HeapEnd;
-#ifdef STACK_CHECKER_ON
- /*
- * Initialize the stack bounds checker
- * We can either turn it on here or from the app.
- */
-
- Stack_check_Initialize();
-#endif
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
+ bsp_libc_init( &_HeapStart, &_HeapEnd - &_HeapStart, 0 );
}
void bsp_start(void)
diff --git a/c/src/lib/libbsp/powerpc/score603e/ChangeLog b/c/src/lib/libbsp/powerpc/score603e/ChangeLog
index d40af469bf..f30b10ef87 100644
--- a/c/src/lib/libbsp/powerpc/score603e/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/score603e/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
index b3d2e1433b..3e4428955c 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
@@ -83,10 +83,6 @@ void bsp_pretasking_hook(void)
heap_size &= 0xfffffff0; /* keep it as a multiple of 16 bytes */
bsp_libc_init((void *) heap_start, heap_size, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
/*PAGE
diff --git a/c/src/lib/libbsp/powerpc/ss555/ChangeLog b/c/src/lib/libbsp/powerpc/ss555/ChangeLog
index 2be951494b..353a808a85 100644
--- a/c/src/lib/libbsp/powerpc/ss555/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/ss555/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c b/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c
index 4af763631a..86cf311cb6 100644
--- a/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/ss555/startup/bspstart.c
@@ -94,16 +94,12 @@ void bsp_pretasking_hook(void)
* the kernel and the application can be linked and burned into ROM
* independently of each other.
*/
- uint8_t *_HeapStart =
+ uint8_t *_HeapStart =
(uint8_t *)Configuration.work_space_start
+ rtems_configuration_get_work_space_size();
- extern uint8_t _HeapEnd[];
+ extern uint8_t _HeapEnd[];
- bsp_libc_init( _HeapStart, _HeapEnd - _HeapStart, 0 );
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
+ bsp_libc_init( _HeapStart, _HeapEnd - _HeapStart, 0 );
}
/*
diff --git a/c/src/lib/libbsp/powerpc/virtex/ChangeLog b/c/src/lib/libbsp/powerpc/virtex/ChangeLog
index 69b6e8d318..9748d2c9e7 100644
--- a/c/src/lib/libbsp/powerpc/virtex/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/virtex/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c b/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c
index e3b378b3c6..7a4afbc1cc 100644
--- a/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/virtex/startup/bspstart.c
@@ -141,13 +141,6 @@ void bsp_pretasking_hook(void)
bsp_libc_init((void *) heap_start, heap_size, 0); /* 64 * 1024 */
-/*
- XAssertSetCallback((XAssertCallback*)bsp_XAssertHandler);
-*/
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
/*
diff --git a/c/src/lib/libbsp/sh/gensh1/ChangeLog b/c/src/lib/libbsp/sh/gensh1/ChangeLog
index 06d63780e9..6a7d97c6c6 100644
--- a/c/src/lib/libbsp/sh/gensh1/ChangeLog
+++ b/c/src/lib/libbsp/sh/gensh1/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c b/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c
index 9588237e69..8dcc05c176 100644
--- a/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c
+++ b/c/src/lib/libbsp/sh/gensh1/startup/bspstart.c
@@ -54,10 +54,6 @@ void bsp_libc_init( void *, uint32_t, int );
void bsp_pretasking_hook(void)
{
bsp_libc_init(&HeapStart, (char *)&HeapEnd - (char *)&HeapStart, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
/*
diff --git a/c/src/lib/libbsp/sh/gensh2/ChangeLog b/c/src/lib/libbsp/sh/gensh2/ChangeLog
index 277b802500..9f288636a0 100644
--- a/c/src/lib/libbsp/sh/gensh2/ChangeLog
+++ b/c/src/lib/libbsp/sh/gensh2/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/sh/gensh2/startup/bspstart.c b/c/src/lib/libbsp/sh/gensh2/startup/bspstart.c
index 8032714dc0..52e047836f 100644
--- a/c/src/lib/libbsp/sh/gensh2/startup/bspstart.c
+++ b/c/src/lib/libbsp/sh/gensh2/startup/bspstart.c
@@ -56,10 +56,6 @@ void bsp_libc_init( void *, uint32_t, int );
void bsp_pretasking_hook(void)
{
bsp_libc_init(&HeapStart, (char *)&HeapEnd - (char *)&HeapStart, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
/*
diff --git a/c/src/lib/libbsp/sh/gensh4/ChangeLog b/c/src/lib/libbsp/sh/gensh4/ChangeLog
index 19fe31a0ef..e4324be235 100644
--- a/c/src/lib/libbsp/sh/gensh4/ChangeLog
+++ b/c/src/lib/libbsp/sh/gensh4/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/sh/gensh4/startup/bspstart.c b/c/src/lib/libbsp/sh/gensh4/startup/bspstart.c
index d4fbaa4787..52114d60ac 100644
--- a/c/src/lib/libbsp/sh/gensh4/startup/bspstart.c
+++ b/c/src/lib/libbsp/sh/gensh4/startup/bspstart.c
@@ -57,10 +57,6 @@ void bsp_libc_init( void *, uint32_t, int );
void bsp_pretasking_hook(void)
{
bsp_libc_init(&HeapStart, (char *)&HeapEnd - (char *)&HeapStart, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
/*
diff --git a/c/src/lib/libbsp/sh/shsim/ChangeLog b/c/src/lib/libbsp/sh/shsim/ChangeLog
index 6b511691bd..ddb4ee0ce0 100644
--- a/c/src/lib/libbsp/sh/shsim/ChangeLog
+++ b/c/src/lib/libbsp/sh/shsim/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/sh/shsim/startup/bspstart.c b/c/src/lib/libbsp/sh/shsim/startup/bspstart.c
index 416d80a18f..f9cbf855b7 100644
--- a/c/src/lib/libbsp/sh/shsim/startup/bspstart.c
+++ b/c/src/lib/libbsp/sh/shsim/startup/bspstart.c
@@ -51,10 +51,6 @@ void bsp_libc_init( void *, uint32_t, int );
void bsp_pretasking_hook(void)
{
bsp_libc_init(&HeapStart, (char *)&HeapEnd - (char *)&HeapStart, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
/*
diff --git a/c/src/lib/libbsp/sh/simsh4/ChangeLog b/c/src/lib/libbsp/sh/simsh4/ChangeLog
index 5b56d5a677..b402b9460e 100644
--- a/c/src/lib/libbsp/sh/simsh4/ChangeLog
+++ b/c/src/lib/libbsp/sh/simsh4/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c b/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c
index 1457bb9a37..2c0febb232 100644
--- a/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c
+++ b/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c
@@ -14,7 +14,7 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
*
- * COPYRIGHT (c) 1989-2007.
+ * COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -60,10 +60,6 @@ void bsp_libc_init( void *, uint32_t, int );
void bsp_pretasking_hook(void)
{
bsp_libc_init(&HeapStart, (char *)&HeapEnd - (char *)&HeapStart, 0);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
}
/*
diff --git a/c/src/lib/libbsp/unix/posix/ChangeLog b/c/src/lib/libbsp/unix/posix/ChangeLog
index 4c101e9592..448f349322 100644
--- a/c/src/lib/libbsp/unix/posix/ChangeLog
+++ b/c/src/lib/libbsp/unix/posix/ChangeLog
@@ -1,3 +1,17 @@
+2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * startup/bspstart.c: Add capability for bootcard.c BSP Initialization
+ Framework to ask the BSP where it has memory for the RTEMS Workspace
+ and C Program Heap. These collectively are referred to as work area.
+ If the BSP supports this, then it does not have to include code to
+ split the available memory between the two areas. This reduces the
+ amount of code in the BSP specific bspstart.c file. Additionally, the
+ shared framework can initialize the C Library, call
+ rtems_debug_enable(), and dirty the work area memory. Until most/all
+ BSPs support this new capability, if the BSP supports this, it should
+ call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
+ When the transition is complete, this autoconf macro can be removed.
+
2008-05-14 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rework to avoid .rel files.
diff --git a/c/src/lib/libbsp/unix/posix/startup/bspstart.c b/c/src/lib/libbsp/unix/posix/startup/bspstart.c
index 40a7e367ff..08c3352e43 100644
--- a/c/src/lib/libbsp/unix/posix/startup/bspstart.c
+++ b/c/src/lib/libbsp/unix/posix/startup/bspstart.c
@@ -75,17 +75,6 @@ void bsp_pretasking_hook(void)
heap_start = 0;
bsp_libc_init((void *)heap_start, Heap_size, 1024 * 1024);
-
-#ifdef RTEMS_DEBUG
- rtems_debug_enable( RTEMS_DEBUG_ALL_MASK );
-#endif
-
- /*
- * Dump malloc stats on exit...
- */
-#if defined(RTEMS_DEBUG)
- atexit(malloc_dump);
-#endif
}
/*