Unverified Commit 7dc00e7e authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub
Browse files

Merge pull request #23 from ids1024/no_intrinsics

Remove core_intrinsics feature
parents 7c805d2a 3fc22e2e
use core::intrinsics::{volatile_load, volatile_store};
use core::ptr::{read_volatile, write_volatile};
use core::mem::uninitialized;
use core::ops::{BitAnd, BitOr, Not};
......@@ -22,10 +22,10 @@ impl<T> Io for Mmio<T> where T: Copy + PartialEq + BitAnd<Output = T> + BitOr<Ou
type Value = T;
fn read(&self) -> T {
unsafe { volatile_load(&self.value) }
unsafe { read_volatile(&self.value) }
}
fn write(&mut self, value: T) {
unsafe { volatile_store(&mut self.value, value) };
unsafe { write_volatile(&mut self.value, value) };
}
}
#![deny(warnings)]
#![feature(asm)]
#![feature(const_fn)]
#![feature(core_intrinsics)]
#![no_std]
pub use self::arch::*;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment