File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 27
27
*/
28
28
static inline void native_set_pte (pte_t * ptep , pte_t pte )
29
29
{
30
- ptep -> pte_high = pte .pte_high ;
30
+ WRITE_ONCE ( ptep -> pte_high , pte .pte_high ) ;
31
31
smp_wmb ();
32
- ptep -> pte_low = pte .pte_low ;
32
+ WRITE_ONCE ( ptep -> pte_low , pte .pte_low ) ;
33
33
}
34
34
35
35
static inline void native_set_pte_atomic (pte_t * ptep , pte_t pte )
@@ -58,16 +58,16 @@ static inline void native_set_pud(pud_t *pudp, pud_t pud)
58
58
static inline void native_pte_clear (struct mm_struct * mm , unsigned long addr ,
59
59
pte_t * ptep )
60
60
{
61
- ptep -> pte_low = 0 ;
61
+ WRITE_ONCE ( ptep -> pte_low , 0 ) ;
62
62
smp_wmb ();
63
- ptep -> pte_high = 0 ;
63
+ WRITE_ONCE ( ptep -> pte_high , 0 ) ;
64
64
}
65
65
66
66
static inline void native_pmd_clear (pmd_t * pmdp )
67
67
{
68
- pmdp -> pmd_low = 0 ;
68
+ WRITE_ONCE ( pmdp -> pmd_low , 0 ) ;
69
69
smp_wmb ();
70
- pmdp -> pmd_high = 0 ;
70
+ WRITE_ONCE ( pmdp -> pmd_high , 0 ) ;
71
71
}
72
72
73
73
static inline void native_pud_clear (pud_t * pudp )
You can’t perform that action at this time.
0 commit comments