mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-10 06:01:52 +00:00
kern: fix assert usage in process load
This commit is contained in:
parent
aba6ca7329
commit
6d0bf70783
1 changed files with 2 additions and 1 deletions
|
@ -129,7 +129,8 @@ namespace ams::kern {
|
||||||
/* It is guaranteed by pre-condition that only the very first block can overlap with the physical binary, so we can simply memmove it at the end. */
|
/* It is guaranteed by pre-condition that only the very first block can overlap with the physical binary, so we can simply memmove it at the end. */
|
||||||
if (last_block != Null<KVirtualAddress>) {
|
if (last_block != Null<KVirtualAddress>) {
|
||||||
/* This is guaranteed by pre-condition, but for ease of debugging, check for no overlap. */
|
/* This is guaranteed by pre-condition, but for ease of debugging, check for no overlap. */
|
||||||
AMS_ASSERT(!util::HasOverlap(GetInteger(binary_phys), binary_size, GetInteger(block_addr), cur_size));
|
MESOSPHERE_ASSERT(!util::HasOverlap(GetInteger(binary_phys), binary_size, GetInteger(block_addr), cur_size));
|
||||||
|
MESOSPHERE_UNUSED(binary_phys);
|
||||||
|
|
||||||
/* We need to copy. */
|
/* We need to copy. */
|
||||||
std::memcpy(GetVoidPointer(KMemoryLayout::GetLinearVirtualAddress(block_addr)), GetVoidPointer(data), cur_size);
|
std::memcpy(GetVoidPointer(KMemoryLayout::GetLinearVirtualAddress(block_addr)), GetVoidPointer(data), cur_size);
|
||||||
|
|
Loading…
Reference in a new issue