OSDev.org

The Place to Start for Operating System Developers
It is currently Mon Apr 29, 2024 11:25 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Cant for the life of me fix paging.
PostPosted: Tue Apr 02, 2024 3:41 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5146
You get a page fault, same as what happens when you set any other reserved bit in the page tables.


Top
 Profile  
 
 Post subject: Re: Cant for the life of me fix paging.
PostPosted: Wed Apr 03, 2024 2:20 am 
Offline

Joined: Wed Apr 19, 2023 1:40 am
Posts: 19
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], vladimir and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group