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 module #690

Merged
merged 11 commits into from
Oct 20, 2024
Merged

Create memory module #690

merged 11 commits into from
Oct 20, 2024

Conversation

vinc
Copy link
Owner

@vinc vinc commented Oct 18, 2024

  • Take unmapped and virtual memory into account when counting total memory
  • Enable interrupts except keyboard during memory init to improve boot time accuracy
  • Create mem module
  • Move allocator inside mem module split into heap and phys
  • Update memory usage command to report whole RAM usage

@vinc
Copy link
Owner Author

vinc commented Oct 18, 2024

Allowing interrupt during kernel heap initialization correctly count elapsed time during the allocation, which can be slow with large memory. No adverse effects have been found yet.

@vinc
Copy link
Owner Author

vinc commented Oct 18, 2024

Typing on the keyboard during memory init generates interrupts that crash the module. This can be fixed by delaying keyboard init to after memory init.

@vinc
Copy link
Owner Author

vinc commented Oct 18, 2024

Except that loading the keyword module after memory initialization breaks it. Masking the keyword interrupt works though.

@vinc
Copy link
Owner Author

vinc commented Oct 20, 2024

The memory usage command will now report whole RAM usage instead of only the kernel heap.

@vinc vinc changed the title Improve memory module Create memory module Oct 20, 2024
@vinc vinc marked this pull request as ready for review October 20, 2024 12:50
@vinc vinc merged commit 92acc3e into trunk Oct 20, 2024
1 check passed
@vinc vinc deleted the feature/memory-module branch October 20, 2024 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant