Update coreutils, remove sys:memory
This commit is contained in:
parent
1bcc7f96f4
commit
79b700b2f6
4 changed files with 9 additions and 20 deletions
|
@ -1,10 +0,0 @@
|
|||
use collections::Vec;
|
||||
|
||||
use arch::memory::{free_frames, used_frames};
|
||||
use syscall::error::Result;
|
||||
|
||||
pub fn resource() -> Result<Vec<u8>> {
|
||||
let string = format!("Memory Used: {} KB\nMemory Free: {} KB\n", used_frames() * 4, free_frames() * 4);
|
||||
|
||||
Ok(string.into_bytes())
|
||||
}
|
|
@ -12,7 +12,6 @@ use syscall::scheme::Scheme;
|
|||
mod context;
|
||||
mod cpu;
|
||||
mod exe;
|
||||
mod memory;
|
||||
mod scheme;
|
||||
//mod interrupt;
|
||||
//mod log;
|
||||
|
@ -41,7 +40,6 @@ impl SysScheme {
|
|||
files.insert(b"context", Box::new(move || context::resource()));
|
||||
files.insert(b"cpu", Box::new(move || cpu::resource()));
|
||||
files.insert(b"exe", Box::new(move || exe::resource()));
|
||||
files.insert(b"memory", Box::new(move || memory::resource()));
|
||||
files.insert(b"scheme", Box::new(move || scheme::resource()));
|
||||
//files.insert(b"interrupt", Box::new(move || interrupt::resource()));
|
||||
//files.insert(b"log", Box::new(move || log::resource()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue