Exemple #1
0
 /// <summary>
 /// Sync specific mappings with another table.
 /// The virtual and physical Addresses in both table will be the same.
 /// </summary>
 public static void MapCopy(this IPageTable table, IPageTable fromTable, KernelMemoryMap *mm, bool present = true, bool flush = false)
 {
     table.MapCopy(fromTable, mm->Start, mm->Size, present, flush);
 }
Exemple #2
0
        /// <summary>
        /// Sync specific mappings with another table.
        /// The virtual and physical Addresses in both table will be the same.
        /// </summary>
        public static void MapCopy(this IPageTable table, IPageTable fromTable, BootInfoMemoryType type, bool present = true, bool flush = false)
        {
            var mm = BootInfo.GetMap(type);

            table.MapCopy(fromTable, mm->Start, mm->Size, present, flush);
        }