Cant for the life of me fix paging.

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Octocontrabass
Member
Member
Posts: 5560
Joined: Mon Mar 25, 2013 7:01 pm

Re: Cant for the life of me fix paging.

Post by Octocontrabass »

You get a page fault, same as what happens when you set any other reserved bit in the page tables.
maxtyson123
Posts: 24
Joined: Wed Apr 19, 2023 1:40 am
Libera.chat IRC: maxtyson123

Re: Cant for the life of me fix paging.

Post by maxtyson123 »

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
Post Reply