Paging works, can now run main from virtual(ish) memory
This commit is contained in:
@@ -320,8 +320,8 @@ impl PageMapLevel4 {
|
||||
return Err(RegisterError::IndexOutOfBounds);
|
||||
};
|
||||
match (M::MODE, offset) {
|
||||
(UserOrSupervisor::Supervisor, 256..) => (),
|
||||
(UserOrSupervisor::User, ..256) => (),
|
||||
(UserOrSupervisor::User, 256..) => (),
|
||||
(UserOrSupervisor::Supervisor, ..256) => (),
|
||||
_ => return Err(RegisterError::InvalidIndexForPrivilegeLevel),
|
||||
}
|
||||
*val = page.0;
|
||||
|
||||
Reference in New Issue
Block a user