twizzler_driver/arch/x86.rs
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;