diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/cpu/x86/smm.h | 2 | ||||
-rw-r--r-- | src/lib/malloc.c | 6 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h index b717811a74..f7aafa93cd 100644 --- a/src/include/cpu/x86/smm.h +++ b/src/include/cpu/x86/smm.h @@ -487,8 +487,6 @@ void mainboard_smi_sleep(u8 slp_typ); #if !CONFIG_SMM_TSEG void smi_release_lock(void); -#else -#define smi_get_tseg_base() 0 #endif /* Get PMBASE address */ 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); } |