forked from Imagelibrary/rtems
Merged from 4.5.0-beta3a
This commit is contained in:
@@ -34,10 +34,13 @@
|
||||
extern void bsp_libc_init( void *, unsigned long, int );
|
||||
extern rtems_configuration_table BSP_Configuration;
|
||||
|
||||
extern unsigned long _RamSize;
|
||||
extern void *_RamBase;
|
||||
extern void *_WorkspaceBase;
|
||||
extern void *_HeapSize;
|
||||
|
||||
|
||||
unsigned long _M68k_Ramsize;
|
||||
|
||||
void bsp_pretasking_hook(void)
|
||||
{
|
||||
void *heapStart;
|
||||
@@ -46,7 +49,7 @@ void bsp_pretasking_hook(void)
|
||||
|
||||
heapStart = (void *)
|
||||
((unsigned long)&_WorkspaceBase + BSP_Configuration.work_space_size);
|
||||
ramSpace = _RamSize - (unsigned long) heapStart;
|
||||
ramSpace = (unsigned long) &_RamBase + _M68k_Ramsize - (unsigned long) heapStart;
|
||||
|
||||
if (heapSize == 0)
|
||||
heapSize = ramSpace;
|
||||
|
||||
Reference in New Issue
Block a user