summaryrefslogtreecommitdiff
path: root/src/lib/malloc.c
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2015-05-28 21:15:14 +0200
committerVladimir Serbinenko <phcoder@gmail.com>2015-05-29 07:06:37 +0200
commit41652a9bad054041de2bb9b805d21493e6a3a70f (patch)
treefd04a94ff41b3ebe27860ea784b0aea79066f13d /src/lib/malloc.c
parent4bddb75c4edb8880bae0aa45c3c31a45c27a1fc2 (diff)
Remove leftover smi_get_tseg_base
Change-Id: I8e694f37c8709efd702208aa005096ebf1f3abb5 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/10356 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <edward.ocallaghan@koparo.com>
Diffstat (limited to 'src/lib/malloc.c')
-rw-r--r--src/lib/malloc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/malloc.c b/src/lib/malloc.c
index 0140185a6d..9974b2cdfb 100644
--- a/src/lib/malloc.c
+++ b/src/lib/malloc.c
@@ -44,11 +44,5 @@ void *memalign(size_t boundary, size_t size)
void *malloc(size_t size)
{
-#if CONFIG_SMM_TSEG && defined(__SMM__)
- if (!free_mem_ptr) {
- free_mem_ptr = &_heap + smi_get_tseg_base();
- free_mem_end_ptr = &_eheap + smi_get_tseg_base();
- }
-#endif
return memalign(sizeof(u64), size);
}