forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 */
|
||||
|
||||
/*-------------------------------------------------------------------------+
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
extern unsigned char _HeapStart;
|
||||
extern unsigned char _HeapEnd;
|
||||
|
||||
bsp_libc_init( &_HeapStart, &_HeapEnd - &_HeapStart, 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
|
||||
bsp_libc_init( &_HeapStart, &_HeapEnd - &_HeapStart, 0 );
|
||||
}
|
||||
|
||||
void bsp_start(void)
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user