aboutsummaryrefslogtreecommitdiff
path: root/mk/config.mk
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2018-04-24 12:22:32 +0200
committerJérôme Forissier <jerome.forissier@linaro.org>2018-04-25 12:49:10 +0200
commit96c1d8c56cdec253565036b7754b5b2d9ab63195 (patch)
treedd34d1875794cb95f627c79e9fd55eaae527c8c3 /mk/config.mk
parentc0ce02ed1cb00f59a8cdd66b4228b9798b560887 (diff)
ta: TEE_Malloc() and friend: skips layers
Prior to this patch TEE_Malloc(), TEE_Realloc() and TEE_Free() were using two extra layers implemented on top of the well known malloc(), realloc(), calloc() and free() functions. With this patch the extra layers are skipped. When compiled for user TAs realloc() clears all memory that otherwise would be uninitialized memory since it's required by the spec [1] if TEE_Malloc() is called with the hint TEE_MALLOC_FILL_ZERO. Since that's the only recognized hint in the spec realloc() assumes that it's always needed. [1] GP TEE Internal Core API Specification v1.1 Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'mk/config.mk')
-rw-r--r--mk/config.mk5
1 files changed, 0 insertions, 5 deletions
diff --git a/mk/config.mk b/mk/config.mk
index 70c998a6..fcab13c3 100644
--- a/mk/config.mk
+++ b/mk/config.mk
@@ -59,11 +59,6 @@ CFG_TEE_TA_LOG_LEVEL ?= 1
# CFG_TEE_TA_LOG_LEVEL. Otherwise, they are not output at all
CFG_TEE_CORE_TA_TRACE ?= y
-# If 1, enable debug features in TA memory allocation.
-# Debug features include check of buffer overflow, statistics, mark/check heap
-# feature.
-CFG_TEE_CORE_USER_MEM_DEBUG ?= 1
-
# If y, enable the memory leak detection feature in the bget memory allocator.
# When this feature is enabled, calling mdbg_check(1) will print a list of all
# the currently allocated buffers and the location of the allocation (file and