summaryrefslogtreecommitdiffstats
path: root/bsps/powerpc/mpc55xxevb/start/bspgetworkarea.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/powerpc/mpc55xxevb/start/bspgetworkarea.c')
-rw-r--r--bsps/powerpc/mpc55xxevb/start/bspgetworkarea.c27
1 files changed, 11 insertions, 16 deletions
diff --git a/bsps/powerpc/mpc55xxevb/start/bspgetworkarea.c b/bsps/powerpc/mpc55xxevb/start/bspgetworkarea.c
index cb7cf6c7ec..915d13e7b6 100644
--- a/bsps/powerpc/mpc55xxevb/start/bspgetworkarea.c
+++ b/bsps/powerpc/mpc55xxevb/start/bspgetworkarea.c
@@ -23,22 +23,17 @@
#include <bsp/linker-symbols.h>
LINKER_SYMBOL(bsp_section_work_bonus_begin);
-LINKER_SYMBOL(bsp_section_work_bonus_size);
+LINKER_SYMBOL(bsp_section_work_bonus_end);
-void bsp_work_area_initialize(void)
-{
- Heap_Area areas [] = {
- {
- bsp_section_work_begin,
- (uintptr_t) bsp_section_work_size
- }, {
- bsp_section_work_bonus_begin,
- (uintptr_t) bsp_section_work_bonus_size
- }
- };
+static Memory_Area _Memory_Areas[] = {
+ MEMORY_INITIALIZER(bsp_section_work_begin, bsp_section_work_end),
+ MEMORY_INITIALIZER(bsp_section_work_bonus_begin, bsp_section_work_bonus_end)
+};
+
+static const Memory_Information _Memory_Information =
+ MEMORY_INFORMATION_INITIALIZER(_Memory_Areas);
- bsp_work_area_initialize_with_table(
- areas,
- sizeof(areas) / sizeof(areas [0])
- );
+const Memory_Information *_Memory_Get(void)
+{
+ return &_Memory_Information;
}