Is this page directory and page tables well-formed?

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.
Post Reply
User avatar
~
Member
Member
Posts: 1226
Joined: Tue Mar 06, 2007 11:17 am
Libera.chat IRC: ArcheFire

Is this page directory and page tables well-formed?

Post by ~ »

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: Select all

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: Select all

                                                    ;       -
_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
                                                    ;     -

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

My x86 emulator/kernel project and software tools/documentation:
http://master.dl.sourceforge.net/projec ... 7z?viasf=1
Post Reply