Changeset 41 for trunk/hal/generic
- Timestamp:
- Jun 22, 2017, 4:05:15 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_gpt.h
r23 r41 45 45 46 46 /**************************************************************************************** 47 * These global variables define sthe masks for the Generic Page Table Entry attributes.47 * These global variables define the masks for the Generic Page Table Entry attributes. 48 48 * The actual values must be defined in the implementation (hal_gpt.c file). 49 49 ***************************************************************************************/ 50 50 51 extern uint32_t GPT_MAPPED; /*! PTE is map epd */51 extern uint32_t GPT_MAPPED; /*! PTE is mapped */ 52 52 extern uint32_t GPT_SMALL; /*! PTE is a small page */ 53 53 extern uint32_t GPT_READABLE; /*! PTE is readable */ … … 58 58 extern uint32_t GPT_DIRTY; /*! PTE has been "recently" written */ 59 59 extern uint32_t GPT_ACCESSED; /*! PTE has been "recently" accessed */ 60 extern uint32_t GPT_GLOBAL; /*! PTE is kept in TLB at context sw tch*/60 extern uint32_t GPT_GLOBAL; /*! PTE is kept in TLB at context switch */ 61 61 extern uint32_t GPT_COW; /*! PTE must be copied on write */ 62 extern uint32_t GPT_SWAP; /*! PTE swap ed on disk (non implemented yet)*/62 extern uint32_t GPT_SWAP; /*! PTE swapped on disk (not implemented yet) */ 63 63 extern uint32_t GPT_LOCKED; /*! PTE is protected against concurrent access */ 64 64 65 65 /**************************************************************************************** 66 * This structure define the Generic Page Table descriptor.66 * This structure defines the Generic Page Table descriptor. 67 67 ***************************************************************************************/ 68 68 … … 77 77 78 78 /**************************************************************************************** 79 * This function allocates physical memory for 79 * This function allocates physical memory for first level page table (PT1), 80 80 * and initializes the page table descriptor. 81 81 **************************************************************************************** … … 89 89 * For a multi-levels radix tree implementation, it includes all nodes in the tree. 90 90 * If the calling thread is running in the reference cluster, it checks that user PTE 91 * entries are unmapped, and release the mapped physical pages.91 * entries are unmapped, and releases the mapped physical pages. 92 92 * The kernel pages are not released. 93 93 **************************************************************************************** … … 97 97 98 98 /**************************************************************************************** 99 * This function print on the kernel terminal the content of a generic page table.99 * This function prints on the kernel terminal the content of a generic page table. 100 100 **************************************************************************************** 101 101 * @ gpt : pointer on generic page table descriptor. … … 104 104 105 105 /**************************************************************************************** 106 * This blocking function gets a lock on a PTE ( page Table Entry) identified106 * This blocking function gets a lock on a PTE (Page Table Entry) identified 107 107 * by its VPN, and returns only when the PTE has been successfully locked. 108 108 * If the target PTE is not present, it allocates and maps a physical page. … … 166 166 uint32_t * attr, 167 167 ppn_t * ppn ); 168 168 169 /**************************************************************************************** 169 170 * This function copies all valid entries from the source <src_gpt> to the <dst_pgt>.
Note: See TracChangeset
for help on using the changeset viewer.