Fix a missed write_volatile in VmWriter

This commit is contained in:
Ruihan Li
2024-07-31 15:59:20 +08:00
committed by Tate, Hongliang Tian
parent aa84b31634
commit dee7734073

View File

@ -574,7 +574,7 @@ impl<'a> VmWriter<'a, KernelSpace> {
// hence the `add` operation and `write` operation are valid and will only manipulate // hence the `add` operation and `write` operation are valid and will only manipulate
// the memory managed by this writer. // the memory managed by this writer.
unsafe { unsafe {
(self.cursor as *mut T).add(i).write(value); (self.cursor as *mut T).add(i).write_volatile(value);
} }
} }