ncm: use static memory pools for different allocations

This commit is contained in:
Michael Scire 2020-03-29 17:20:25 -07:00
parent 7fc1e86bf5
commit bd4c608b08
11 changed files with 159 additions and 44 deletions

View file

@ -22,8 +22,6 @@ namespace ams::mem::impl::heap {
namespace {
char g_log_buf[4_KB];
void InitializeSpanPage(SpanPage *sp) {
static_assert(SpanPage::MaxSpanCount <= BITSIZEOF(u64));
constexpr size_t NumUnusedBits = BITSIZEOF(u64) - SpanPage::MaxSpanCount;