Ejemplo n.º 1
0
        public static BootMemoryEntry SetMemoryMap(Pointer address, ulong size, BootMemoryType type)
        {
            var entry = List.GetBootMemoryMapEntry(List.Count);

            entry.StartAddress = address;
            entry.Size         = size;
            entry.Type         = type;

            List.Count++;

            return(entry);
        }
Ejemplo n.º 2
0
 public static BootMemoryEntry SetMemoryMap(AddressRange range, BootMemoryType type)
 {
     return(SetMemoryMap(range.Address, range.Size, type));
 }