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

* csb336/startup/bspstart.c, csb337/startup/bspstart.c,
	edb7312/startup/bspstart.c, gba/startup/bspstart.c,
	gp32/startup/bspstart.c, rtl22xx/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.
This commit is contained in:
Joel Sherrill
2008-05-15 15:52:58 +00:00
parent 621feee062
commit 92c9baf84a
7 changed files with 17 additions and 38 deletions

View File

@@ -1,3 +1,20 @@
2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* csb336/startup/bspstart.c, csb337/startup/bspstart.c,
edb7312/startup/bspstart.c, gba/startup/bspstart.c,
gp32/startup/bspstart.c, rtl22xx/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-06 Ray Xu <rayx.cn@gmail.com>
* acinclude.m4: Add smdk2410. Update gp32 to use shared code.

View File

@@ -56,13 +56,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 /* RTEMS_DEBUG */
}

View File

@@ -60,13 +60,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 /* RTEMS_DEBUG */
}

View File

@@ -79,12 +79,6 @@ void bsp_pretasking_hook(void)
bsp_libc_init((void *)heap_start, heap_size, 0);
#ifdef RTEMS_DEBUG
rtems_debug_enable(RTEMS_DEBUG_ALL_MASK);
#endif /* RTEMS_DEBUG */
} /* bsp_pretasking_hook */
/**************************************************************************/

View File

@@ -89,11 +89,6 @@ void bsp_pretasking_hook(void)
rtemsFreeMemStart += _heap_size;
#ifdef RTEMS_DEBUG
rtems_debug_enable(RTEMS_DEBUG_ALL_MASK);
#endif /* RTEMS_DEBUG */
#if BSP_DEBUG
/* The following information is very useful when debugging. */
printk("[bsp_pretasking_hook]\n");

View File

@@ -61,12 +61,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 /* RTEMS_DEBUG */
} /* bsp_pretasking_hook */
Thread bsp_idle_task(uint32_t ignored)

View File

@@ -85,13 +85,6 @@ void bsp_pretasking_hook(void)
heap_size = 0x40000;
bsp_libc_init((void *)heap_start, heap_size, 0);
#ifdef RTEMS_DEBUG
rtems_debug_enable(RTEMS_DEBUG_ALL_MASK);
#endif /* RTEMS_DEBUG */
} /* bsp_pretasking_hook */
/**************************************************************************/