From d1a9f9ec7423f1756e826392a05b7e6c4ecd8066 Mon Sep 17 00:00:00 2001 From: negativekelvin Date: Mon, 1 Jun 2020 00:53:09 -0700 Subject: [PATCH] Fix reserved psram region Closes https://github.com/espressif/esp-idf/pull/5373 Closes https://github.com/espressif/esp-idf/issues/5821 --- components/soc/src/esp32/soc_memory_layout.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/components/soc/src/esp32/soc_memory_layout.c b/components/soc/src/esp32/soc_memory_layout.c index 2b85731f9d..93855f4532 100644 --- a/components/soc/src/esp32/soc_memory_layout.c +++ b/components/soc/src/esp32/soc_memory_layout.c @@ -74,12 +74,7 @@ const soc_memory_type_desc_t soc_memory_types[] = { const size_t soc_memory_type_count = sizeof(soc_memory_types)/sizeof(soc_memory_type_desc_t); -#if CONFIG_SPIRAM_SIZE == -1 -// Assume we need to reserve 4MB in the auto-detection case #define RESERVE_SPIRAM_SIZE (4*1024*1024) -#else -#define RESERVE_SPIRAM_SIZE CONFIG_SPIRAM_SIZE -#endif /* Region descriptors. These describe all regions of memory available, and map them to a type in the above type.