mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-28 20:53:35 +08:00
ksupp/rtio/exception: fix timestamp
This commit is contained in:
parent
09ffd9de1e
commit
2213e7ffac
@ -59,7 +59,7 @@ mod imp {
|
||||
|
||||
#[inline(never)]
|
||||
unsafe fn process_exceptional_status(channel: i32, status: u8) {
|
||||
let timestamp = *(csr::rtio::NOW_HI_ADDR as *const i64);
|
||||
let timestamp = ((csr::rtio::now_hi_read() as i64) << 32) | (csr::rtio::now_lo_read() as i64);
|
||||
if status & RTIO_O_STATUS_WAIT != 0 {
|
||||
while csr::rtio::o_status_read() & RTIO_O_STATUS_WAIT != 0 {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user