Fixed bug #804.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11046 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
ce79109195
commit
c010f378ca
|
@ -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 */
|
||||
|
|
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue