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

Implement paged memory #9

Open
netromdk opened this issue Apr 6, 2015 · 1 comment
Open

Implement paged memory #9

netromdk opened this issue Apr 6, 2015 · 1 comment
Labels

Comments

@netromdk
Copy link
Owner

netromdk commented Apr 6, 2015

Paged memory is important. Especially because I'm confined to using the stack until this has been implemented.

@netromdk netromdk added the todo label Apr 6, 2015
@netromdk
Copy link
Owner Author

netromdk commented Apr 8, 2015

Kernel:
Initially use a bitmap to store if each physical page is free or used, or use a stack. There can be a total of 4 GB pages where each page is 4 KB, so 1048576 pages. I will keep it simple at first but it should be considered later whether it'd be preferable to switch to a buddy allocation scheme.

  1. Write a page frame allocator.
  2. Implement virtual memory management.

libc++:
Typical std malloc()/new implementations use sbrk(value) to increment/decrement the amount of available memory and it would use actual kernel routines/syscalls to achieve this. But there are a lot of different ways of doing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant