File tree Expand file tree Collapse file tree 3 files changed +0
-25
lines changed
Expand file tree Collapse file tree 3 files changed +0
-25
lines changed Original file line number Diff line number Diff line change 1- use aarch64_cpu:: asm:: barrier:: { ISH , dmb} ;
2-
31pub mod kernel;
42pub mod mm;
5-
6- /// Force strict CPU ordering, serializes load and store operations.
7- #[ allow( dead_code) ]
8- #[ inline( always) ]
9- pub ( crate ) fn memory_barrier ( ) {
10- dmb ( ISH ) ;
11- }
Original file line number Diff line number Diff line change 11pub mod kernel;
22pub mod mm;
3-
4- #[ allow( dead_code) ]
5- #[ inline( always) ]
6- pub ( crate ) fn memory_barrier ( ) {
7- riscv:: asm:: sfence_vma_all ( ) ;
8- }
Original file line number Diff line number Diff line change @@ -22,13 +22,3 @@ pub(crate) fn swapgs(stack_frame: &ExceptionStackFrame) {
2222#[ cfg( not( feature = "common-os" ) ) ]
2323#[ inline( always) ]
2424pub ( crate ) fn swapgs ( _stack_frame : & ExceptionStackFrame ) { }
25-
26- /// Force strict CPU ordering, serializes load and store operations.
27- #[ allow( dead_code) ]
28- #[ inline( always) ]
29- pub ( crate ) fn memory_barrier ( ) {
30- use core:: arch:: asm;
31- unsafe {
32- asm ! ( "mfence" , options( nostack, nomem, preserves_flags) ) ;
33- }
34- }
You can’t perform that action at this time.
0 commit comments