From 92565e9246f3a47b90fea4a436ecfd8e7a1198b8 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Mon, 2 Jan 2023 22:48:07 +0000 Subject: 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 --- firmware/export/config.h | 1 + 1 file changed, 1 insertion(+) (limited to 'firmware/export') 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 */ /* CONFIG_BUFLIB_BACKEND */ #define BUFLIB_BACKEND_MEMPOOL 0 /* Default memory pool backed buflib */ +#define BUFLIB_BACKEND_MALLOC 1 /* malloc() buflib (for debugging) */ /* now go and pick yours */ #if defined(IRIVER_H100) -- cgit v1.2.3