[PATCH 5/6] bsps: Add bsp_work_area_initialize_with_table()

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Oct 15 13:13:56 UTC 2012


---
 c/src/lib/libbsp/shared/include/bootcard.h |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/c/src/lib/libbsp/shared/include/bootcard.h b/c/src/lib/libbsp/shared/include/bootcard.h
index 751e77a..1350bb6 100644
--- a/c/src/lib/libbsp/shared/include/bootcard.h
+++ b/c/src/lib/libbsp/shared/include/bootcard.h
@@ -192,6 +192,15 @@ static inline void bsp_work_area_initialize_default(
   RTEMS_Malloc_Initialize(&area, 1, NULL);
 }
 
+static inline void bsp_work_area_initialize_with_table(
+  Heap_Area *areas,
+  size_t area_count
+)
+{
+  _Workspace_Handler_initialization(areas, area_count, _Heap_Extend);
+  RTEMS_Malloc_Initialize(areas, area_count, _Heap_Extend);
+}
+
 void bsp_work_area_initialize(void);
 
 void bsp_libc_init(void);
-- 
1.7.7




More information about the devel mailing list