MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / SetBit

Function SetBit

Kernel/src/arch/x86_64/physicalallocator.cpp:28–30  ·  view source on GitHub ↗

Sets a bit in the physical memory bitmap

Source from the content-addressed store, hash-verified

26
27 // Sets a bit in the physical memory bitmap
28 inline void SetBit(uint64_t bit) {
29 physicalMemoryBitmap[bit >> 5] |= (1 << (bit % 32));
30 }
31
32 // Clears a bit in the physical memory bitmap
33 inline void ClearBit(uint64_t bit) {

Callers 2

MarkMemoryRegionUsedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected