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 @@ -686,15 +686,22 @@ impl<S: PageSize> MapperFlushRange<S> {
686
686
} )
687
687
}
688
688
689
- /// Flush the page from the TLB to ensure that the newest mapping is used.
689
+ /// Flush the pages from the TLB to ensure that the newest mapping is used.
690
690
#[ cfg( feature = "instructions" ) ]
691
691
#[ inline]
692
- pub fn flush ( self ) {
692
+ pub fn flush_range ( self ) {
693
693
for page in self . 0 {
694
694
crate :: instructions:: tlb:: flush ( page. start_address ( ) )
695
695
}
696
696
}
697
697
698
+ /// Flush all pages from the TLB to ensure that the newest mapping is used.
699
+ #[ cfg( feature = "instructions" ) ]
700
+ #[ inline]
701
+ pub fn flush_all ( self ) {
702
+ crate :: instructions:: tlb:: flush_all ( )
703
+ }
704
+
698
705
/// Don't flush the TLB and silence the “must be used” warning.
699
706
#[ inline]
700
707
pub fn ignore ( self ) { }
You can’t perform that action at this time.
0 commit comments