mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-25 02:00:26 +08:00
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.
This directory contains tests for some of the items in the lib directories. The intent is to be able to verify the basic functionality of a library. For example, it is important to know that the stack checker successfully detects tasks which both stay within and exceed their stack limits.