Changeset 41 for trunk/hal/generic


Ignore:
Timestamp:
Jun 22, 2017, 4:05:15 PM (7 years ago)
Author:
max@…
Message:

style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/generic/hal_gpt.h

    r23 r41  
    4545
    4646/****************************************************************************************
    47  * These global variables defines the masks for the Generic Page Table Entry attributes.
     47 * These global variables define the masks for the Generic Page Table Entry attributes.
    4848 * The actual values must be defined in the implementation (hal_gpt.c file).
    4949 ***************************************************************************************/
    5050
    51 extern uint32_t  GPT_MAPPED;         /*! PTE is mapepd                                 */
     51extern uint32_t  GPT_MAPPED;         /*! PTE is mapped                                 */
    5252extern uint32_t  GPT_SMALL;          /*! PTE is a small page                           */
    5353extern uint32_t  GPT_READABLE;       /*! PTE is readable                               */
     
    5858extern uint32_t  GPT_DIRTY;          /*! PTE has been "recently" written               */
    5959extern uint32_t  GPT_ACCESSED;       /*! PTE has been "recently" accessed              */
    60 extern uint32_t  GPT_GLOBAL;         /*! PTE is kept in TLB at context swtch           */
     60extern uint32_t  GPT_GLOBAL;         /*! PTE is kept in TLB at context switch          */
    6161extern uint32_t  GPT_COW;            /*! PTE must be copied on write                   */
    62 extern uint32_t  GPT_SWAP;           /*! PTE swaped on disk (non implemented yet)      */
     62extern uint32_t  GPT_SWAP;           /*! PTE swapped on disk (not implemented yet)     */
    6363extern uint32_t  GPT_LOCKED;         /*! PTE is protected against concurrent access    */
    6464
    6565/****************************************************************************************
    66  * This structure define the Generic Page Table descriptor.
     66 * This structure defines the Generic Page Table descriptor.
    6767 ***************************************************************************************/
    6868
     
    7777
    7878/****************************************************************************************
    79  * This function allocates physical memory for  first level page table (PT1),
     79 * This function allocates physical memory for first level page table (PT1),
    8080 * and initializes the page table descriptor.
    8181 ****************************************************************************************
     
    8989 * For a multi-levels radix tree implementation, it includes all nodes in the tree.
    9090 * 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.
    9292 * The kernel pages are not released.
    9393 ****************************************************************************************
     
    9797
    9898/****************************************************************************************
    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.
    100100 ****************************************************************************************
    101101 * @ gpt     : pointer on generic page table descriptor.
     
    104104
    105105/****************************************************************************************
    106  * This blocking function gets a lock on a PTE (page Table Entry) identified
     106 * This blocking function gets a lock on a PTE (Page Table Entry) identified
    107107 * by its VPN, and returns only when the PTE has been successfully locked.
    108108 * If the target PTE is not present, it allocates and maps a physical page.
     
    166166                      uint32_t * attr,
    167167                      ppn_t    * ppn );
     168
    168169/****************************************************************************************
    169170 * 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.