x86_64 icon indicating copy to clipboard operation
x86_64 copied to clipboard

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

Open heipiao233 opened this issue 2 years ago • 1 comments

It only allows me to set 4KiB page frame.

heipiao233 avatar Jul 19 '23 06:07 heipiao233

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>).

phil-opp avatar Jul 19 '23 07:07 phil-opp