git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11046 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Giovanni Di Sirio 2017-11-20 18:28:56 +00:00
parent ce79109195
commit c010f378ca
2 changed files with 3 additions and 1 deletions

View File

@ -173,7 +173,7 @@ static inline void *chHeapAlloc(memory_heap_t *heapp, size_t size) {
*/
static inline size_t chHeapGetSize(const void *p) {
return ((heap_header_t *)p)->used.size;
return ((heap_header_t *)p - 1U)->used.size;
}
#endif /* CH_CFG_USE_HEAP == TRUE */

View File

@ -155,6 +155,8 @@
Updated the various platform.mk implementing "smart build" mode.
- HAL: Fixed DAC CH2 marked as not present in STM32F091 registry (bug #905)
(backported to 17.6.4 and 16.1.10).
- LIB: Fixed chHeapGetSize value is not obtained from the header (bug #904)
(backported to 17.6.4).
- HAL: Fixed ADC does not build on STM32F030 (bug #903)(backported to 17.6.4).
- LIB: Fixed typo for function evtStop (bug #897)(backported to 17.6.4
and 16.1.10).