Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create memory region reservations #480

Open
todo bot opened this issue Sep 18, 2019 · 0 comments
Open

Create memory region reservations #480

todo bot opened this issue Sep 18, 2019 · 0 comments
Assignees
Labels
todo 🗒️ Created by the todo bot

Comments

@todo
Copy link

todo bot commented Sep 18, 2019

Memory region reservations is sort of insane in HOS/NX - especially for 32-bit. I'll figure it out later.


// TODO: Create memory region reservations
// BODY: Memory region reservations is sort of insane in HOS/NX - especially
// BODY: for 32-bit. I'll figure it out later.
newproc.pmemory.lock().create_regular_mapping(VirtualAddress(procinfo.code_addr as usize), procinfo.code_num_pages as usize * PAGE_SIZE, MemoryType::CodeStatic, MappingAccessRights::k_r())?;
let curproc = scheduler::get_current_process();
let hnd = curproc.phandles.lock().add_handle(Arc::new(Handle::Process(newproc)));
Ok(hnd as _)
}


This issue was generated by todo based on a TODO comment in 27ab3e4 when #458 was merged. cc @roblabla.
@todo todo bot added the todo 🗒️ Created by the todo bot label Sep 18, 2019
@todo todo bot assigned roblabla Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
todo 🗒️ Created by the todo bot
Projects
None yet
Development

No branches or pull requests

1 participant