From 69537ca9eccfa12142dea588fa34b70a6d220705 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 12 Jan 2000 16:38:56 +0000 Subject: Patch rtems-rc-20000104-16.diff from Ralf Corsepius that converts the libbsp/i386 subdirectory to full automake. --- c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c') diff --git a/c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c b/c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c index 9fea220c0c..be4acce753 100644 --- a/c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c +++ b/c/src/lib/libbsp/m68k/dmv152/startup/bspstart.c @@ -56,14 +56,10 @@ void bsp_libc_init( void *, unsigned32, int ); void bsp_pretasking_hook(void) { - extern int end; - rtems_unsigned32 heap_start; + extern void *_HeapStart; + extern rtems_unsigned32 _HeapSize; - heap_start = (rtems_unsigned32) &end; - if (heap_start & (CPU_ALIGNMENT-1)) - heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); - - bsp_libc_init((void *) heap_start, 64 * 1024, 0); + bsp_libc_init( &_HeapStart, _HeapSize, 0 ); #ifdef RTEMS_DEBUG rtems_debug_enable( RTEMS_DEBUG_ALL_MASK ); -- cgit v1.2.3