kern: ensure InitArguments do not cross page boundaries

This commit is contained in:
Michael Scire
2021-06-17 12:49:25 -07:00
parent 8a6afe7909
commit e423aef033
2 changed files with 5 additions and 2 deletions

View File

@@ -24,6 +24,8 @@
namespace ams::kern::init {
static_assert(util::IsPowerOfTwo(alignof(KInitArguments)) && util::IsPowerOfTwo(sizeof(KInitArguments)));
KPhysicalAddress GetInitArgumentsAddress(s32 core_id);
}