mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 01:43:22 +00:00
Fix a missed write_volatile
in VmWriter
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
aa84b31634
commit
dee7734073
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user