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