We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When initializing memory management, in src/mm/mod.rs:102 the space occupied by the kernel is subtracted from total_memoty_size().
src/mm/mod.rs:102
total_memoty_size()
let available_memory = (total_memory_size() - (kernel_end_address().as_usize() - env::get_ram_address().as_usize()) - reserved_space) .align_down(LargePageSize::SIZE as usize);
But in src/arch/x86_64/mm/physicalmem.rs:42 it looks like that is already excluded from total_memory_size():
src/arch/x86_64/mm/physicalmem.rs:42
total_memory_size()
let start_address = if m.base_address() <= mm::kernel_start_address().as_u64() { mm::kernel_end_address() } else { VirtAddr(m.base_address()) };
zulip thread
The text was updated successfully, but these errors were encountered:
@sarahspberrypi, any thoughts on this? You recently took a look at this code.
Sorry, something went wrong.
sarahspberrypi
No branches or pull requests
When initializing memory management, in
src/mm/mod.rs:102
the space occupied by the kernel is subtracted fromtotal_memoty_size()
.But in
src/arch/x86_64/mm/physicalmem.rs:42
it looks like that is already excluded fromtotal_memory_size()
:zulip thread
The text was updated successfully, but these errors were encountered: