summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/shared/startup/sbrk.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps: Move startup files to bspsSebastian Huber2018-04-201-147/+0
| | | | | | | | Adjust build support files to new directory layout. This patch is a part of the BSP source reorganization. Update #3285.
* bsps/powerpc: Avoid placement in small-data areaRalf Kirchner2013-07-051-2/+2
|
* score: Work area initialization API changeSebastian Huber2012-10-251-24/+23
| | | | | | | | | | | | The work areas (RTEMS work space and C program heap) will be initialized now in a separate step and are no longer part of rtems_initialize_data_structures(). Initialization is performed with tables of Heap_Area entries. This allows usage of scattered memory areas present on various small scale micro-controllers. The sbrk() support API changes also. The bsp_sbrk_init() must now deal with a minimum size for the first memory chunk to take the configured work space size into account.
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111-2/+0
| | | | | | | | | | | | Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
* 2011-06-17 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-06-171-1/+0
| | | | * shared/startup/sbrk.c: Remove extraneous '}'.
* 2011-05-18 Till Straumann <strauman@slac.stanford.edu>Till Straumann2011-05-181-27/+21
| | | | | | PR1797/bsps: Applied cleaned-up version of Kate's patch. CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK is now a 'bspopts.h' setting and as such configurable.
* 2010-08-03 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2010-08-031-31/+36
| | | | | * shared/startup/sbrk.c: Make bsp's sbrk a weak reference so that the test of having sbrk() support in malloc can link.
* Whitespace removal.Ralf Corsepius2009-11-301-8/+8
|
* - must return original memory size in *heap_size_p if policy == -1Till Straumann2009-03-051-0/+1
|
* 2008-11-03 Till Straumann <strauman@slac.stanford.edu>Till Straumann2008-11-031-1/+44
| | | | | | | * shared/startup/pretaskinghook.c, shared/startup/sbrk.c: Fixed PR#1335. Pass initial starting address to heap initialization to avoid 1st 'sbrk'. User may now define 'BSP_sbrk_policy' variable (see sbrk.c) to tune behavior.
* 2008-09-19 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-09-191-3/+5
| | | | | * shared/startup/bspgetworkarea.c, shared/startup/sbrk.c: Remove warnings by switching to uintptr_t.
* 2007-01-16 Till Straumann <strauman@slac.stanford.edu>Till Straumann2007-01-171-2/+45
| | | | | | | | | | | * ep1a/vme/vmeconfig.c, mvme5500/pci/pcifinddevice.c, * mvme5500/startup/pgtbl_activate.c, mvme5500/vectors/bspException.h, * mvme5500/vectors/exceptionhandler.c, mvme5500/vme/VME.h, * mvme5500/vme/vmeconfig.c, score603e/vme/vmeconfig.c, shared/pci/pcifinddevice.c, * shared/startup/pgtbl_activate.c, shared/startup/pgtbl_setup.c, * shared/startup/probeMemEnd.c, shared/startup/sbrk.c, shared/vme/VME.h, * shared/vme/VMEConfig.h, shared/vme/vme_universe.c, shared/vme/vmeconfig.c: Added SLAC/Stanford Authorship Note / Copyright + Liability Disclaimer.
* Remove stray white spaces.Ralf Corsepius2004-04-211-1/+1
|
* Remove stray white spaces.Ralf Corsepius2004-04-151-1/+0
|
* 2004-03-31 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-03-311-5/+5
| | | | | | * bootloader/misc.c, bootloader/pci.c, console/inch.c, include/bsp.h, pci/pci.c, startup/bspstart.c, startup/sbrk.c: Convert to using c99 fixed size types.
* 2003-09-26 Till Strauman <strauman@slac.stanford.edu>Joel Sherrill2003-09-261-0/+64
PR 496/bsps * startup/sbrk.c: New file. * startup/bspstart.c: This patch implements 'sbrk' for the powerpc-shared BSP to work around what's known as the '32Mb problem' in combination with run-time loaded code. GCC normally generates (PowerPC) code doing 'short jumps' which requires all text segments being in the same 32Mb area of memory. However, some run-time loaders use (e.g. heap-) memory violating the stated limitation on hardware with more than 32Mb of memory. (NOTE: portable loaders are probably not even aware of this GCC/CPU specific problem.) This patch implements a simple workaround: At boot time, the system is only provided with 32Mb of memory. The user is supposed to load all necessary modules prior to that limit being exhausted. Once that happens, newlib/malloc end up trying to 'sbrk()' for more memory and the implementation provided by this patch will then make the rest of the physical memory available.