mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 13:22:39 +08:00
2011-09-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1873/cpukit * score/include/rtems/score/heap.h: Revert previous commit. * sapi/include/confdefs.h: Use proper constants in _Configure_From_workspace().
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2011-09-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
PR 1873/cpukit
|
||||
* score/include/rtems/score/heap.h: Revert previous commit.
|
||||
* sapi/include/confdefs.h: Use proper constants in
|
||||
_Configure_From_workspace().
|
||||
|
||||
2011-09-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* score/include/rtems/score/basedefs.h: Typo.
|
||||
|
||||
@@ -867,7 +867,7 @@ rtems_fs_init_functions_t rtems_fs_init_helper =
|
||||
* may be applied.
|
||||
*/
|
||||
#define _Configure_From_workspace(_size) \
|
||||
(ssize_t)((_size) + (2 * sizeof(uint32_t)) + CPU_ALIGNMENT)
|
||||
(ssize_t)((_size) + HEAP_BLOCK_HEADER_SIZE + CPU_HEAP_ALIGNMENT - 1)
|
||||
|
||||
/**
|
||||
* Do not use the unlimited bit as part of the multiplication
|
||||
|
||||
@@ -177,9 +177,7 @@ typedef struct Heap_Block Heap_Block;
|
||||
} Heap_Protection_block_end;
|
||||
|
||||
#define HEAP_PROTECTION_HEADER_SIZE \
|
||||
(sizeof(Heap_Protection_block_begin) + \
|
||||
CPU_ALIGNMENT + \
|
||||
sizeof(Heap_Protection_block_end))
|
||||
(sizeof(Heap_Protection_block_begin) + sizeof(Heap_Protection_block_end))
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user