Changeset 9d1f3943 in rtems for cpukit/libcsupport

Timestamp:
02/25/16 08:02:43 (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
67de508
Parents:
839d0a74
git-author:
Sebastian Huber <sebastian.huber@…> (02/25/16 08:02:43)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/25/16 10:35:54)
Message:

malloc: Add _Malloc_System_state()

Replace malloc_is_system_state_OK() with _Malloc_System_state() to allow
early allocations, e.g. in bsp_start(). Here the _Thread_Executing is
NULL, thus an _API_Mutex_Lock() would lead to a NULL pointer access.

Move malloc() support code to general case
rtems_heap_allocate_aligned_with_boundary(). Use
rtems_heap_allocate_aligned_with_boundary() to avoid duplicated code.

(No files)

Note: See TracChangeset for help on using the changeset viewer.