changes i guess

master
able 2022-06-13 22:25:39 -05:00
parent 7535ddaaca
commit df00f3142b
3 changed files with 1 additions and 34 deletions

View File

@ -12,7 +12,6 @@ A new process should not have any capabilities at all until it is given them or
- [ ] write a file
- [ ] delete a file
- [ ] Network cap
- [ ] open/close socket
- [ ] bind/unbind socket
@ -21,11 +20,6 @@ A new process should not have any capabilities at all until it is given them or
- [ ] spawn Process cap
- [ ] kill Process cap
## Riscv
## ARM

View File

@ -1,27 +0,0 @@
use hashbrown::HashMap;
pub static ALIAS_TABLE: spin::Mutex<AliasTable> = spin::Mutex::new(AliasTable::new());
/// A table of aliases
///
/// This is used to allow users to specify aliases for files and commands
pub struct AliasTable {
pub table: HashMap<String, String>,
}
impl AliasTable {
pub fn new() -> Self {
Self {
table: HashMap::new(),
}
}
pub fn add_alias(&mut self, alias: String, path: String) {
self.table.insert(alias, path);
}
pub fn get_alias(&self, alias: String) -> Option<String> {
let alias_table = ALIAS_TABLE.lock();
alias_table.table.get(&alias).map(|x| x.to_string())
}
}

View File

@ -95,7 +95,7 @@ pub fn scratchpad() {
debug!("{}", generate_process_pass());
}
/*
debug!("start the graphics");
let mut abcde = SCREEN_BUFFER.lock();