Paging works, can now run main from virtual(ish) memory

This commit is contained in:
ivajon
2026-05-11 18:47:11 +02:00
parent 4c2a5b1068
commit d0a95dfd9c
3 changed files with 75 additions and 64 deletions

View File

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