Turnstone Operating System
Loading...
Searching...
No Matches
memory_page_entry_t Struct Reference

Public Attributes

uint8_t present: 1
 bit 0 page present?
 
uint8_t writable: 1
 bit 1 page can be writen?
 
uint8_t user_accessible: 1
 bit 2 page can be accessable by user space
 
uint8_t write_through_caching: 1
 bit 3 how cache will be writen
 
uint8_t disable_cache: 1
 bit 4 for disable caching of page when 1
 
uint8_t accessed: 1
 bit 5 page is accessed by cpu, cpu sets this bit
 
uint8_t dirty: 1
 bit 6 page is writen, cpu sets this bits
 
uint8_t hugepage: 1
 bit 7 hugepage flag for p3 (1g) and p2 (2m)
 
uint8_t global: 1
 bit 8 page is global? for caching while page switches needs cr4.pge 1
 
uint8_t os_avail01: 1
 bit 9 is available for os
 
uint8_t os_avail02: 1
 bit 10 is available for os
 
uint8_t os_avail03: 1
 bit 11 is available for os
 
uint64_t physical_address: 40
 bits 12-51 physical address 40 bits, shifted by 12 (long mode)
 
uint8_t os_avail04: 1
 bit 52 is available for os
 
uint8_t os_avail05: 1
 bit 53 is available for os
 
uint8_t os_avail06: 1
 bit 54 is available for os
 
uint8_t os_avail07: 1
 bit 55 is available for os
 
uint8_t os_avail08: 1
 bit 56 is available for os
 
uint8_t os_avail09: 1
 bit 57 is available for os
 
uint8_t os_avail10: 1
 bit 58 is available for os
 
uint8_t os_avail11: 1
 bit 59 is available for os or pke if cr4.pke 1 orr cr4.pks 1
 
uint8_t os_avail12: 1
 bit 60 is available for os or pke if cr4.pke 1 orr cr4.pks 1
 
uint8_t os_avail13: 1
 bit 61 is available for os or pke if cr4.pke 1 orr cr4.pks 1
 
uint8_t os_avail14: 1
 bit 62 is available for os or pke if cr4.pke 1 orr cr4.pks 1
 
uint8_t no_execute: 1
 bit 63 prevents execution of page by kernel programs
 

The documentation for this struct was generated from the following file: