rename platform to os

This commit is contained in:
edef 2015-04-15 16:20:28 -04:00
parent 5ae54da9c2
commit 27318bc271
3 changed files with 5 additions and 4 deletions

View File

@ -1,17 +1,18 @@
use core::prelude::*;
use stack::StackSource;
use arch::Registers;
use platform;
use stack::Stack;
use os;
pub struct Context {
regs: Registers,
_stack: platform::Stack
_stack: os::Stack
}
impl Context {
#[inline]
pub unsafe fn new<F>(f: F) -> Context where F: FnOnce() + Send + 'static {
let mut stack = platform::StackSource::get_stack(4 << 20);
let mut stack = os::StackSource::get_stack(4 << 20);
let regs = Registers::new(&mut stack, f);
Context {
regs: regs,

View File

@ -20,4 +20,4 @@ pub mod context;
pub mod stack;
mod arch;
mod platform;
mod os;