x86_64
x86_64 copied to clipboard
How can I set 2MiB page frame in my Page Directory Table?
It only allows me to set 4KiB page frame.
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>).