kern: fix bugs caused by UB + transition to -Os

This commit is contained in:
Michael Scire
2020-12-01 18:41:44 -08:00
parent 95bbb20cb0
commit 4ce3778d87
4 changed files with 49 additions and 45 deletions

View File

@@ -63,7 +63,7 @@ namespace ams::kern {
}
[[fallthrough]];
case ThreadType_HighPriority:
{
if (type != ThreadType_Main) {
MESOSPHERE_ASSERT(phys_core == GetCurrentCoreId());
}
[[fallthrough]];