mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-28 05:52:39 +02:00
kern: fix dynamic calculation of slab heap size
This commit is contained in:
parent
f80eb2c26f
commit
2243c43449
@ -127,10 +127,14 @@ namespace ams::kern::init {
|
|||||||
size += util::AlignUp(sizeof(NAME) * (COUNT), alignof(void *)); \
|
size += util::AlignUp(sizeof(NAME) * (COUNT), alignof(void *)); \
|
||||||
});
|
});
|
||||||
|
|
||||||
/* NOTE: This can't be used right now because we don't have all these types implemented. */
|
/* Add the size required for each slab. */
|
||||||
/* Once we do, uncomment the following and stop using the hardcoded size. */
|
|
||||||
FOREACH_SLAB_TYPE(ADD_SLAB_SIZE)
|
FOREACH_SLAB_TYPE(ADD_SLAB_SIZE)
|
||||||
|
|
||||||
|
#undef ADD_SLAB_SIZE
|
||||||
|
|
||||||
|
/* Add the reserved size. */
|
||||||
|
size += SlabRegionReservedSize;
|
||||||
|
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user