File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/structures/paging/mapper Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -701,15 +701,22 @@ impl<S: PageSize> MapperFlushRange<S> {
701
701
} )
702
702
}
703
703
704
- /// Flush the page from the TLB to ensure that the newest mapping is used.
704
+ /// Flush the pages from the TLB to ensure that the newest mapping is used.
705
705
#[ cfg( feature = "instructions" ) ]
706
706
#[ inline]
707
- pub fn flush ( self ) {
707
+ pub fn flush_range ( self ) {
708
708
for page in self . 0 {
709
709
crate :: instructions:: tlb:: flush ( page. start_address ( ) )
710
710
}
711
711
}
712
712
713
+ /// Flush all pages from the TLB to ensure that the newest mapping is used.
714
+ #[ cfg( feature = "instructions" ) ]
715
+ #[ inline]
716
+ pub fn flush_all ( self ) {
717
+ crate :: instructions:: tlb:: flush_all ( )
718
+ }
719
+
713
720
/// Don't flush the TLB and silence the “must be used” warning.
714
721
#[ inline]
715
722
pub fn ignore ( self ) { }
You can’t perform that action at this time.
0 commit comments