OSDev.org
https://forum.osdev.org/

Cant for the life of me fix paging.
https://forum.osdev.org/viewtopic.php?f=1&t=57195
Page 2 of 2

Author:  Octocontrabass [ Tue Apr 02, 2024 3:41 pm ]
Post subject:  Re: Cant for the life of me fix paging.

You get a page fault, same as what happens when you set any other reserved bit in the page tables.

Author:  maxtyson123 [ Wed Apr 03, 2024 2:20 am ]
Post subject:  Re: Cant for the life of me fix paging.

Octocontrabass wrote:
Anyway, according to the AMD manuals, in a 2MB page translation, the reserved bits are bits 7 and 8 in the PML5E and PML4E, nothing in the PDPE, and bits 13-20 in the PDE. The bits you are clearing are part of the physical address, and there is nothing reserved here. That is, the manual doesn't say what happens when you set unimplemented bits there, maybe the processor treats them as reserved bits, too.


Ahh, I see, I must have misread the wiki.

Anyway, I finally figured it out, somewhere when I was testing I was setting the huge page bit to 1 manually in the function create_page_table_entry(...) this is what was causing the reserved bits to be set.

Thank you to everyone for your help

Page 2 of 2 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/