| Commit message (Collapse) | Author | Files | Lines |
|
sparc/shared/startup/bspgetworkarea.c
* refactored sparc/shared/bspgetworkarea.c to sparc/shared/startup/bspgetworkarea.c
|
|
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.
|
|
If bsp_early_malloc() is called early during boot room will be
allocated after BSS END. If the function is called after boot
is will call malloc() instead. The returned memory is not freeable
and always 8-byte aligned.
If the bsp_early_malloc() isn't called the function is not
dragged in and the workspace will be unmodified in size.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
|
|
* shared/bspgetworkarea.c: Formatting.
|
|
|
|
* shared/bspgetworkarea.c: Add debug prints of memory information.
|
|
* shared/bspgetworkarea.c: Switch from ssize_t to uintptr_t for
bsp_get_work_area() since the work area is larger than a single
allocatable object.
|
|
* libchip/serial/ns16550_p.h: Remove prototype with no implementation.
|
|
* shared/bspgetworkarea.c: Change size_t to ssize_t on
bsp_get_work_area(). On 16-bit architectures, size_t can be 16-bits
which would limit the work area to 64K.
|
|
* shared/bspstart.c: Use shared bsp_get_work_area() in its own file and
rely on BSP Framework to perform more initialization.
* shared/bspgetworkarea.c: New file.
|
|
* 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.
|
|
* shared/bspgetworkarea.c: New file.
|