forked from Imagelibrary/rtems
2009-05-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* startup/bspgetworkarea.c: Switch from ssize_t to uintptr_t for bsp_get_work_area() since the work area is larger than a single allocatable object.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2009-05-08 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspgetworkarea.c: Switch from ssize_t to uintptr_t for
|
||||
bsp_get_work_area() since the work area is larger than a single
|
||||
allocatable object.
|
||||
|
||||
2009-04-28 Chris Johns <chrisj@rtems.org>
|
||||
|
||||
* start/start.S: Update for boot_card command line change.
|
||||
|
||||
@@ -19,10 +19,10 @@ extern void __heap_limit;
|
||||
* Heap.
|
||||
*/
|
||||
void bsp_get_work_area(
|
||||
void **work_area_start,
|
||||
ssize_t *work_area_size,
|
||||
void **heap_start,
|
||||
ssize_t *heap_size
|
||||
void **work_area_start,
|
||||
uintptr_t *work_area_size,
|
||||
void **heap_start,
|
||||
uintptr_t *heap_size
|
||||
)
|
||||
{
|
||||
*work_area_start = (void *)&_end;
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2009-05-08 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspgetworkarea.c: Switch from ssize_t to uintptr_t for
|
||||
bsp_get_work_area() since the work area is larger than a single
|
||||
allocatable object.
|
||||
|
||||
2009-05-04 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* start/start.S: Checked call to boot_card.
|
||||
|
||||
@@ -22,10 +22,10 @@ extern void *__ewram_end;
|
||||
* Heap.
|
||||
*/
|
||||
void bsp_get_work_area(
|
||||
void **work_area_start,
|
||||
ssize_t *work_area_size,
|
||||
void **heap_start,
|
||||
ssize_t *heap_size
|
||||
void **work_area_start,
|
||||
uintptr_t *work_area_size,
|
||||
void **heap_start,
|
||||
uintptr_t *heap_size
|
||||
)
|
||||
{
|
||||
*work_area_start = &_end;
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2009-05-08 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspgetworkarea.c: Switch from ssize_t to uintptr_t for
|
||||
bsp_get_work_area() since the work area is larger than a single
|
||||
allocatable object.
|
||||
|
||||
2009-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* console/console.c, console/inch.c, ide/ide.c: Fixed warnings.
|
||||
|
||||
@@ -109,16 +109,16 @@ void bsp_size_memory(void)
|
||||
* Heap.
|
||||
*/
|
||||
void bsp_get_work_area(
|
||||
void **work_area_start,
|
||||
ssize_t *work_area_size,
|
||||
void **heap_start,
|
||||
ssize_t *heap_size
|
||||
void **work_area_start,
|
||||
uintptr_t *work_area_size,
|
||||
void **heap_start,
|
||||
uintptr_t *heap_size
|
||||
)
|
||||
{
|
||||
*work_area_start = (void *) rtemsFreeMemStart;
|
||||
*work_area_size = (uintptr_t) bsp_mem_size - (uintptr_t) rtemsFreeMemStart;
|
||||
*heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA;
|
||||
*heap_size = (ssize_t) HeapSize;
|
||||
*heap_size = (uintptr_t) HeapSize;
|
||||
|
||||
#if 0
|
||||
printk( "WorkArea Base = %p\n", *work_area_start );
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2009-05-08 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspgetworkarea.c: Switch from ssize_t to uintptr_t for
|
||||
bsp_get_work_area() since the work area is larger than a single
|
||||
allocatable object.
|
||||
|
||||
2009-04-28 Chris Johns <chrisj@rtems.org>
|
||||
|
||||
* startup/start.S: Update for boot_card command line change.
|
||||
|
||||
@@ -32,15 +32,15 @@ LINKER_SYMBOL(bsp_external_ram_size);
|
||||
LINKER_SYMBOL(bsp_section_bss_end);
|
||||
|
||||
void bsp_get_work_area(
|
||||
void **work_area_start,
|
||||
ssize_t *work_area_size,
|
||||
void **heap_start,
|
||||
ssize_t *heap_size
|
||||
void **work_area_start,
|
||||
uintptr_t *work_area_size,
|
||||
void **heap_start,
|
||||
uintptr_t *heap_size
|
||||
)
|
||||
{
|
||||
*work_area_start = bsp_section_bss_end;
|
||||
*work_area_size = bsp_ram_end - 2 *
|
||||
MPC55XX_INTERRUPT_STACK_SIZE - bsp_section_bss_end;
|
||||
*heap_start = bsp_external_ram_start;
|
||||
*heap_size = (ssize_t) bsp_external_ram_size;
|
||||
*heap_size = (uintptr_t) bsp_external_ram_size;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2009-05-08 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspgetworkarea.c: Switch from ssize_t to uintptr_t for
|
||||
bsp_get_work_area() since the work area is larger than a single
|
||||
allocatable object.
|
||||
|
||||
2009-04-28 Chris Johns <chrisj@rtems.org>
|
||||
|
||||
* startup/start.S: Update for boot_card command line change.
|
||||
|
||||
@@ -26,10 +26,10 @@
|
||||
#include <bsp/bootcard.h>
|
||||
|
||||
void bsp_get_work_area(
|
||||
void **work_area_start,
|
||||
ssize_t *work_area_size,
|
||||
void **heap_start,
|
||||
ssize_t *heap_size
|
||||
void **work_area_start,
|
||||
uintptr_t *work_area_size,
|
||||
void **heap_start,
|
||||
uintptr_t *heap_size
|
||||
)
|
||||
{
|
||||
char *ram_end = (char *) (TQM_BD_INFO.sdram_size - (uint32_t)TopRamReserved);
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2009-05-08 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* startup/bspgetworkarea.c: Switch from ssize_t to uintptr_t for
|
||||
bsp_get_work_area() since the work area is larger than a single
|
||||
allocatable object.
|
||||
|
||||
2009-04-28 Chris Johns <chrisj@rtems.org>
|
||||
|
||||
* startup/main.c: Update for boot_card command line change.
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
#include <bsp/bootcard.h>
|
||||
|
||||
void bsp_get_work_area(
|
||||
void **work_area_start,
|
||||
ssize_t *work_area_size,
|
||||
void **heap_start,
|
||||
ssize_t *heap_size
|
||||
void **work_area_start,
|
||||
uintptr_t *work_area_size,
|
||||
void **heap_start,
|
||||
uintptr_t *heap_size
|
||||
)
|
||||
{
|
||||
uintptr_t workspace_ptr;
|
||||
|
||||
Reference in New Issue
Block a user