kern: add KAlpha/KBeta

This commit is contained in:
Michael Scire 2020-12-01 16:32:30 -08:00 committed by SciresM
parent e400e2afc7
commit 5da6b60008
8 changed files with 118 additions and 1 deletions

View file

@ -129,6 +129,17 @@ namespace ams::kern {
}
}
/* Close all references to our betas. */
{
auto it = this->beta_list.begin();
while (it != this->beta_list.end()) {
KBeta *beta = std::addressof(*it);
it = this->beta_list.erase(it);
beta->Close();
}
}
/* Our thread local page list must be empty at this point. */
MESOSPHERE_ABORT_UNLESS(this->partially_used_tlp_tree.empty());
MESOSPHERE_ABORT_UNLESS(this->fully_used_tlp_tree.empty());