Skip to content

Commit 8126f13

Browse files
committed
Pin esf_buf functions to IRAM
1 parent 11c0be1 commit 8126f13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platforms/esp8266/src/esp_esf_buf_monitor.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ uint8_t g_esf_buf_canary_strikes = 0;
2929

3030
extern struct esf_buf *__real_esf_buf_alloc(struct pbuf *p, uint32_t type,
3131
uint32_t a4);
32-
struct esf_buf *__wrap_esf_buf_alloc(struct pbuf *p, uint32_t type,
32+
IRAM struct esf_buf *__wrap_esf_buf_alloc(struct pbuf *p, uint32_t type,
3333
uint32_t a4) {
3434
struct esf_buf *eb = __real_esf_buf_alloc(p, type, a4);
3535
if (eb != NULL) {
@@ -44,7 +44,7 @@ struct esf_buf *__wrap_esf_buf_alloc(struct pbuf *p, uint32_t type,
4444
}
4545

4646
extern void __real_esf_buf_recycle(struct esf_buf *eb, uint32_t type);
47-
void __wrap_esf_buf_recycle(struct esf_buf *eb, uint32_t type) {
47+
IRAM void __wrap_esf_buf_recycle(struct esf_buf *eb, uint32_t type) {
4848
for (int i = 0; i < 8; i++) {
4949
if (g_pending_bufs[i] == eb) {
5050
g_pending_bufs[i] = NULL;

0 commit comments

Comments
 (0)