Skip to content

Commit 127f05d

Browse files
committed
Merge remote-tracking branch 'remotes/esp8266/master'
2 parents 652f88e + 707c87f commit 127f05d

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

cores/esp8266/heap.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void* ICACHE_RAM_ATTR pvPortZalloc(size_t size, const char* file, int line)
3232
return calloc(1, size);
3333
}
3434

35-
size_t ICACHE_RAM_ATTR xPortGetFreeHeapSize(void)
35+
size_t xPortGetFreeHeapSize(void)
3636
{
3737
return umm_free_heap_size();
3838
}

cores/esp8266/umm_malloc/umm_malloc.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ static void *get_unpoisoned( unsigned char *ptr ) {
967967

968968
UMM_HEAP_INFO ummHeapInfo;
969969

970-
void *umm_info( void *ptr, int force ) {
970+
void ICACHE_FLASH_ATTR *umm_info( void *ptr, int force ) {
971971

972972
unsigned short int blockNo = 0;
973973

@@ -1728,7 +1728,7 @@ void umm_free( void *ptr ) {
17281728

17291729
/* ------------------------------------------------------------------------ */
17301730

1731-
size_t umm_free_heap_size( void ) {
1731+
size_t ICACHE_FLASH_ATTR umm_free_heap_size( void ) {
17321732
umm_info(NULL, 0);
17331733
return (size_t)ummHeapInfo.freeBlocks * sizeof(umm_block);
17341734
}

cores/esp8266/umm_malloc/umm_malloc_cfg.h

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
#define _UMM_MALLOC_CFG_H
77

88
#include <debug.h>
9+
#ifdef __cplusplus
10+
#extern "C" {
11+
#endif
12+
#include "c_types.h"
13+
#ifdef __cplusplus
14+
}
15+
#endif
916
/*
1017
* There are a number of defines you can set at compile time that affect how
1118
* the memory allocator will operate.

0 commit comments

Comments
 (0)