/// <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); }
/// <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); }