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