fn map_pages<S: PageSize>(
		&mut self,
		range: PageIter<S>,
		physical_address: usize,
		flags: PageTableEntryFlags,
	) {
		let mut current_physical_address = physical_address;
		let mut send_ipi = false;

		for page in range {
			send_ipi |= self.map_page::<S>(page, current_physical_address, flags);
			current_physical_address += S::SIZE;
		}

		if send_ipi {
			apic::ipi_tlb_flush();
		}
	}
/// Maps a continuous range of pages.
///
/// # Arguments
///
/// * `range` - The range of pages of size S
/// * `physical_address` - First physical address to map these pages to
/// * `flags` - Flags from PageTableEntryFlags to set for the page table entry (e.g. WRITABLE or EXECUTE_DISABLE).
///             The PRESENT, ACCESSED, and DIRTY flags are already set automatically.
Maps a continuous range of pages.
Maps a continuous range of pages .
fn map_pages<S: PageSize>(
		&mut self,
		range: PageIter<S>,
		physical_address: usize,
		flags: PageTableEntryFlags,
	) {
		let mut current_physical_address = physical_address;
		let mut send_ipi = false;
		for page in range {
			send_ipi |= self.map_page::<S>(page, current_physical_address, flags);
			current_physical_address += S::SIZE;
		}
		if send_ipi {
			apic::ipi_tlb_flush();
		}
	}
fn map_pages < S : PageSize > ( & mut self , range : PageIter < S > , physical_address : usize , flags : PageTableEntryFlags , ) { let mut current_physical_address = physical_address ; let mut send_ipi = false ; for page in range { send_ipi |= self . map_page :: < S > ( page , current_physical_address , flags ) ; current_physical_address += S :: SIZE ; } if send_ipi { apic :: ipi_tlb_flush ( ) ; } }
Maps a continuous range of pages.
Maps a continuous range of pages .
&mut self
range
PageIter<S>
physical_address
usize
flags
PageTableEntryFlags
&mut self
range
PageIter<S>
physical_address
usize
flags
PageTableEntryFlags