summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2023-01-02 22:48:07 +0000
committerAidan MacDonald <amachronic@protonmail.com>2023-01-15 10:04:13 +0000
commit92565e9246f3a47b90fea4a436ecfd8e7a1198b8 (patch)
tree5e2fa26fff921296729b74bd8947dd225e69c84f /firmware/export
parentf2f198663edc01a1f19e35b8a0c302f8ee47ae5e (diff)
downloadrockbox-92565e9246f3a47b90fea4a436ecfd8e7a1198b8.tar.gz
rockbox-92565e9246f3a47b90fea4a436ecfd8e7a1198b8.zip
buflib: Add malloc-backed buflib
This is intended for improving the effectiveness of tools like ASAN when debugging memory errors in the sim. It's not meant to be a serious allocator for hosted targets. Enable it by changing the buflib backend in config.h. Change-Id: I0cf23cefa47ee35dede7b49e0e5b72dac60e8d3e
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index d8674c40f2..2ec0b7878f 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -382,6 +382,7 @@ Lyre prototype 1 */
382 382
383/* CONFIG_BUFLIB_BACKEND */ 383/* CONFIG_BUFLIB_BACKEND */
384#define BUFLIB_BACKEND_MEMPOOL 0 /* Default memory pool backed buflib */ 384#define BUFLIB_BACKEND_MEMPOOL 0 /* Default memory pool backed buflib */
385#define BUFLIB_BACKEND_MALLOC 1 /* malloc() buflib (for debugging) */
385 386
386/* now go and pick yours */ 387/* now go and pick yours */
387#if defined(IRIVER_H100) 388#if defined(IRIVER_H100)