Tidy up memory type verification helpers
All checks were successful
Builds / ExectOS (amd64, release) (push) Successful in 24s
Builds / ExectOS (amd64, debug) (push) Successful in 26s
Builds / ExectOS (i686, release) (push) Successful in 28s
Builds / ExectOS (i686, debug) (push) Successful in 30s

This commit is contained in:
2025-12-13 21:04:55 +01:00
parent eae48320f3
commit b7bbf9ffa8

View File

@@ -33,7 +33,8 @@ MM::Manager::InitializeMemoryManager(VOID)
} }
} }
/** Checks whether the specified memory type should be considered as free. /**
* Checks whether the specified memory type should be considered as free.
* *
* @param MemoryType * @param MemoryType
* Specifies the memory type to verify. * Specifies the memory type to verify.
@@ -46,8 +47,10 @@ XTAPI
BOOLEAN BOOLEAN
MM::Manager::VerifyMemoryTypeFree(LOADER_MEMORY_TYPE MemoryType) MM::Manager::VerifyMemoryTypeFree(LOADER_MEMORY_TYPE MemoryType)
{ {
return ((MemoryType == LoaderFree) || (MemoryType == LoaderFirmwareTemporary) || return ((MemoryType == LoaderFirmwareTemporary) ||
(MemoryType == LoaderLoadedProgram) || (MemoryType == LoaderOsloaderStack)); (MemoryType == LoaderFree) ||
(MemoryType == LoaderLoadedProgram) ||
(MemoryType == LoaderOsloaderStack));
} }
/** /**
@@ -64,7 +67,7 @@ XTAPI
BOOLEAN BOOLEAN
MM::Manager::VerifyMemoryTypeInvisible(LOADER_MEMORY_TYPE MemoryType) MM::Manager::VerifyMemoryTypeInvisible(LOADER_MEMORY_TYPE MemoryType)
{ {
return ((MemoryType == LoaderFirmwarePermanent) || return ((MemoryType == LoaderBBTMemory) ||
(MemoryType == LoaderSpecialMemory) || (MemoryType == LoaderFirmwarePermanent) ||
(MemoryType == LoaderBBTMemory)); (MemoryType == LoaderSpecialMemory));
} }