WIP: Userspace console
This commit is contained in:
2
lib.rs
2
lib.rs
@@ -162,7 +162,7 @@ pub extern fn kmain() {
|
||||
unsafe {
|
||||
interrupt::disable();
|
||||
context::switch();
|
||||
interrupt::enable_and_halt();
|
||||
interrupt::enable_and_nop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ impl UserInner {
|
||||
let full_size = ((offset + size + 4095)/4096) * 4096;
|
||||
let mut to_address = arch::USER_GRANT_OFFSET;
|
||||
|
||||
let mut flags = entry::PRESENT | entry::NO_EXECUTE;
|
||||
let mut flags = entry::PRESENT | entry::NO_EXECUTE | entry::USER_ACCESSIBLE;
|
||||
if writable {
|
||||
flags |= entry::WRITABLE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user