twizzler_driver/arch/
x86.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::sync::atomic::Ordering;

use crate::dma::{DeviceSync, DmaRegion, SyncMode};

pub(crate) fn sync<T: DeviceSync>(
    _region: &DmaRegion<T>,
    _mode: SyncMode,
    _offset: usize,
    _len: usize,
) {
    core::sync::atomic::fence(Ordering::SeqCst);
    // x86 is already coherent
}

/// Size of a page for this DMA system.
pub const DMA_PAGE_SIZE: usize = 0x1000;