mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-27 06:58:19 +00:00
2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, startup/bspstart.c: Split out bsp_get_work_area() into its own file and use BSP Framework to perform more initialization. * startup/bspgetworkarea.c: New file.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* Makefile.am, startup/bspstart.c: Split out bsp_get_work_area() into
|
||||
its own file and use BSP Framework to perform more initialization.
|
||||
* startup/bspgetworkarea.c: New file.
|
||||
|
||||
2008-09-09 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
|
||||
|
||||
* console/console.c: added printk support
|
||||
|
||||
@@ -56,9 +56,9 @@ console_SOURCES = console/console.c
|
||||
timer_SOURCES = timer/timer.c
|
||||
startup_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
|
||||
../../shared/bsppost.c ../../shared/bsppredriverhook.c \
|
||||
startup/bspstart.c ../../shared/bootcard.c \
|
||||
startup/mmutlbtab.c startup/cpuinit.c \
|
||||
../../shared/sbrk.c ../../shared/gnatinstallhandler.c
|
||||
../../shared/bsppretaskinghook.c startup/bspstart.c \
|
||||
startup/bspgetworkarea.c ../../shared/bootcard.c startup/mmutlbtab.c \
|
||||
startup/cpuinit.c ../../shared/sbrk.c ../../shared/gnatinstallhandler.c
|
||||
|
||||
if HAS_NETWORKING
|
||||
network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
|
||||
|
||||
41
c/src/lib/libbsp/powerpc/tqm8xx/startup/bspgetworkarea.c
Normal file
41
c/src/lib/libbsp/powerpc/tqm8xx/startup/bspgetworkarea.c
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @ingroup tqm8xx
|
||||
*
|
||||
* @brief Source for BSP Get Work Area Memory
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008
|
||||
* Embedded Brains GmbH
|
||||
* Obere Lagerstr. 30
|
||||
* D-82178 Puchheim
|
||||
* Germany
|
||||
* rtems@embedded-brains.de
|
||||
*
|
||||
* The license and distribution terms for this file may be found in the file
|
||||
* LICENSE in this distribution or at http://www.rtems.com/license/LICENSE.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <libcpu/powerpc-utility.h>
|
||||
|
||||
#include <bsp.h>
|
||||
#include <bsp/bootcard.h>
|
||||
|
||||
void bsp_get_work_area(
|
||||
void **work_area_start,
|
||||
size_t *work_area_size,
|
||||
void **heap_start,
|
||||
size_t *heap_size
|
||||
)
|
||||
{
|
||||
char *ram_end = (char *) (TQM_BD_INFO.sdram_size - (uint32_t)TopRamReserved);
|
||||
|
||||
*work_area_start = bsp_work_area_start;
|
||||
*work_area_size = ram_end - bsp_work_area_start;
|
||||
*heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA;
|
||||
*heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT;
|
||||
}
|
||||
@@ -20,11 +20,7 @@
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <rtems/libio.h>
|
||||
#include <rtems/libcsupport.h>
|
||||
#include <rtems/score/thread.h>
|
||||
#include <rtems.h>
|
||||
|
||||
#include <libcpu/powerpc-utility.h>
|
||||
|
||||
@@ -81,11 +77,6 @@ void _BSP_Fatal_error( unsigned n)
|
||||
}
|
||||
}
|
||||
|
||||
void bsp_pretasking_hook( void)
|
||||
{
|
||||
/* Do noting */
|
||||
}
|
||||
|
||||
const char *bsp_tqm_get_cib_string( const char *cib_id)
|
||||
{
|
||||
char srch_pattern[10] = "";
|
||||
@@ -132,16 +123,6 @@ rtems_status_code bsp_tqm_get_cib_uint32( const char *cib_id,
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
||||
void bsp_get_work_area( void **work_area_start, size_t *work_area_size, void **heap_start, size_t *heap_size)
|
||||
{
|
||||
char *ram_end = (char *) (TQM_BD_INFO.sdram_size - (uint32_t)TopRamReserved);
|
||||
|
||||
*work_area_start = bsp_work_area_start;
|
||||
*work_area_size = ram_end - bsp_work_area_start;
|
||||
*heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA;
|
||||
*heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT;
|
||||
}
|
||||
|
||||
void bsp_start( void)
|
||||
{
|
||||
ppc_cpu_id_t myCpu;
|
||||
|
||||
Reference in New Issue
Block a user