OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 2:49 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Is this page directory and page tables well-formed?
PostPosted: Mon Oct 23, 2017 3:13 pm 
Offline
Member
Member
User avatar

Joined: Tue Mar 06, 2007 11:17 am
Posts: 1225
I'm currently debugging my algorithms to implement paging, and to do so I've used my functions to generate a plain-text identity-mapped set of pages to identity-map the whole 4GB space.

I need to know if the generated assembly for the pages is error free:
static_identity_mapped_paging_tables.asm

Can you tell me if I've actually built paging structures for identity mapping the full 32-bit 4GB address space with this code?



Code:
Page directory == Notebook binding which can hold up to 1024 paper pages.

Page table == One page table is 1 paper page that in a line,
              has written down where is physically located
              a 4096-byte block of space. Each paper page
              that points to pages with actual 4096 bytes of content
              can hold up to 1024 lines.




Page directory entry flags:
Code:
                                                    ;       -
_FLAG_x86_32_pageDirectoryEntry_Bit0_Present_TRUE    00000001b
_FLAG_x86_32_pageDirectoryEntry_Bit0_Present_FALSE   00000000b
                                                    ;       -
                                                    ;      -
_FLAG_x86_32_pageDirectoryEntry_Bit1_ReadWrite       00000010b
_FLAG_x86_32_pageDirectoryEntry_Bit1_ReadOnly        00000000b
                                                    ;      -
                                                    ;     -
_FLAG_x86_32_pageDirectoryEntry_Bit2_SupervisorLevel 00000000b
_FLAG_x86_32_pageDirectoryEntry_Bit2_UserLevel       00000100b
                                                    ;     -


_________________
Live PC 1: Image Live PC 2: Image

YouTube:
http://youtube.com/@AltComp126/streams
http://youtube.com/@proyectos/streams

http://master.dl.sourceforge.net/projec ... 7z?viasf=1


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 167 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