work on shared memory accross threads

This commit is contained in:
Jeremy Soller 2016-09-16 17:51:27 -06:00
parent 0b2fd79816
commit 8ee9f1d7da
4 changed files with 111 additions and 56 deletions

View file

@ -3,7 +3,7 @@ use collections::Vec;
use arch;
use super::file::File;
use super::memory::Memory;
use super::memory::{Memory, SharedMemory};
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub enum Status {
@ -26,9 +26,9 @@ pub struct Context {
/// Kernel stack
pub kstack: Option<Box<[u8]>>,
/// Executable image
pub image: Vec<Memory>,
pub image: Vec<SharedMemory>,
/// User heap
pub heap: Option<Memory>,
pub heap: Option<SharedMemory>,
/// User stack
pub stack: Option<Memory>,
/// The open files in the scheme