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

How can I set 2MiB page frame in my Page Directory Table? #429

Open
heipiao233 opened this issue Jul 19, 2023 · 1 comment
Open

How can I set 2MiB page frame in my Page Directory Table? #429

heipiao233 opened this issue Jul 19, 2023 · 1 comment

Comments

@heipiao233
Copy link

It only allows me to set 4KiB page frame.

@phil-opp
Copy link
Member

The Mapper::map_to function has a generic parameter S, which defines the page size. It defaults to 4KiB, but you can specifiy it as Size2MiB instead (Page<Size2MiB> and PhysFrame<Size2MiB>).

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

No branches or pull requests

2 participants