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