Add routine to retrieve installed memory size

This commit is contained in:
2026-01-15 19:09:10 +01:00
förälder c3607ea943
incheckning 46c24e653e
2 ändrade filer med 16 tillägg och 0 borttagningar
+15
Visa fil
@@ -10,6 +10,21 @@
#include <xtos.hh>
/**
* Retrieves the amount of total available memory in the system.
*
* @return This routine returns the amount of available memory in the system in megabytes.
*
* @since XT 1.0
*/
XTAPI
ULONG_PTR
MM::Manager::GetInstalledMemorySize(VOID)
{
/* Return the amount of installed memory */
return (MM::Pfn::GetNumberOfPhysicalPages() * MM_PAGE_SIZE) / 1048576;
}
/**
* Retrieves a pointer to the system's virtual memory layout structure.
*