« first day  last day (15 days later) » 

00:41
Please provide concrete examples.
pub unsafe fn a() -> u32 {
    let p = 581684 as *const u32;
    { *p }
}
playground::a:
	movl	581684, %eax
	retq
 
9 hours later…
 
9 hours later…
18:15
That code isn't doing what you think it is.
You wrote:
pub unsafe fn a() {
    let mut t = 581684;
    std::ptr::write_volatile(&mut t, 1);
}
which is quite different from what I wrote.
You want
std::ptr::write_volatile(581684 as *mut u32, 1);

« first day  last day (15 days later) »