mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 03:27:56 +08:00
score: Add debug support to chains
This helps to detect * double insert, append, prepend errors, and * get from empty chain errors.
This commit is contained in:
@@ -76,6 +76,7 @@ static void add_to_chain(
|
||||
rtems_rbheap_chunk *chunk
|
||||
)
|
||||
{
|
||||
rtems_chain_initialize_node(&chunk->chain_node);
|
||||
rtems_chain_prepend_unprotected(chain, &chunk->chain_node);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user