WIP: Userspace console

This commit is contained in:
Jeremy Soller 2016-09-21 12:18:48 -06:00
parent 5757f3436e
commit 61eb0d1ca8
8 changed files with 148 additions and 19 deletions

View file

@ -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;
}