Remove duplicate code

This commit is contained in:
Jeremy Soller 2019-11-04 09:03:32 -07:00
parent c8600c36d7
commit dae38b24e7
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -47,22 +47,6 @@ static size_t get_ptt_size(void)
return is_ptt_enable() ? 4*KiB : 0;
}
static bool is_ptt_enable(void)
{
if ((read32((void *)PTT_TXT_BASE_ADDRESS) & PTT_PRESENT) ==
PTT_PRESENT)
return true;
return false;
}
/* Calculate PTT size */
static size_t get_ptt_size(void)
{
/* Allocate 4KB for PTT if enabled */
return is_ptt_enable() ? 4*KiB : 0;
}
/* Calculate ME Stolen size */
static size_t get_imr_size(void)
{