Fix i686 compilation.

This commit is contained in:
4lDO2
2024-03-05 10:26:57 +01:00
parent b35c9d1e62
commit d38d8b66bd
8 changed files with 52 additions and 71 deletions
+3 -3
View File
@@ -132,7 +132,7 @@ pub unsafe fn debugger(target_id: Option<crate::context::ContextId>) {
// Switch to context page table to ensure syscall debug and stack dump will work
if let Some(ref space) = context.addr_space {
RmmA::set_table(TableKind::User, space.read().table.utable.table().phys());
RmmA::set_table(TableKind::User, space.acquire_read().table.utable.table().phys());
//TODO check_consistency(&mut space.write());
}
@@ -147,7 +147,7 @@ pub unsafe fn debugger(target_id: Option<crate::context::ContextId>) {
);
}
if let Some(ref addr_space) = context.addr_space {
let addr_space = addr_space.read();
let addr_space = addr_space.acquire_read();
if !addr_space.grants.is_empty() {
println!("grants:");
for (base, grant) in addr_space.grants.iter() {
@@ -171,7 +171,7 @@ pub unsafe fn debugger(target_id: Option<crate::context::ContextId>) {
for _ in 0..64 {
if context.addr_space.as_ref().map_or(false, |space| {
space
.read()
.acquire_read()
.table
.utable
.translate(crate::paging::VirtualAddress::new(sp))