Changeset 401 for trunk/hal/generic


Ignore:
Timestamp:
Aug 17, 2017, 3:02:18 PM (7 years ago)
Author:
alain
Message:

Few bugs in VMM

Location:
trunk/hal/generic
Files:
2 edited

Legend:

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

    r384 r401  
    4848 ***************************************************************************************/
    4949
    50 #define GPT_MAPPED      0x0001  /*! PTE is mapped                                 */
    51 #define GPT_SMALL       0x0002  /*! PTE is a small page                           */
    52 #define GPT_READABLE    0x0004  /*! PTE is readable                               */
    53 #define GPT_WRITABLE    0x0008  /*! PTE is writable                               */
    54 #define GPT_EXECUTABLE  0x0010  /*! PTE is executable                             */
    55 #define GPT_CACHABLE    0x0020  /*! PTE can be cached                             */
    56 #define GPT_USER        0x0040  /*! PTE is user accessible                        */
    57 #define GPT_DIRTY       0x0080  /*! PTE has been "recently" written               */
    58 #define GPT_ACCESSED    0x0100  /*! PTE has been "recently" accessed              */
    59 #define GPT_GLOBAL      0x0200  /*! PTE is kept in TLB at context switch          */
    60 #define GPT_COW         0x0400  /*! PTE must be copied on write                   */
    61 #define GPT_SWAP        0x0800  /*! PTE swapped on disk (not implemented yet)     */
    62 #define GPT_LOCKED      0x1000  /*! PTE is protected against concurrent access    */
     50#define GPT_MAPPED      0x0000  /*! PTE is mapped                                 */
     51#define GPT_SMALL       0x0001  /*! PTE is a small page                           */
     52#define GPT_READABLE    0x0002  /*! PTE is readable                               */
     53#define GPT_WRITABLE    0x0004  /*! PTE is writable                               */
     54#define GPT_EXECUTABLE  0x0008  /*! PTE is executable                             */
     55#define GPT_CACHABLE    0x0010  /*! PTE can be cached                             */
     56#define GPT_USER        0x0020  /*! PTE is user accessible                        */
     57#define GPT_DIRTY       0x0040  /*! PTE has been "recently" written               */
     58#define GPT_ACCESSED    0x0080  /*! PTE has been "recently" accessed              */
     59#define GPT_GLOBAL      0x0100  /*! PTE is kept in TLB at context switch          */
     60#define GPT_COW         0x0200  /*! PTE must be copied on write                   */
     61#define GPT_SWAP        0x0400  /*! PTE swapped on disk (not implemented yet)     */
     62#define GPT_LOCKED      0x0800  /*! PTE is protected against concurrent access    */
    6363
    6464/****************************************************************************************
     
    142142
    143143/****************************************************************************************
    144  * This function unmaps a page table entry identified by its VPN.
    145  * If the calling thread is running in the reference cluster, it sends a broadcast RPC
    146  * to update all other page table copies.
     144 * This function unmaps a page table entry identified by the <vpn> argument in the
     145 * local page table identified by the <gpt> argument.
     146 * It does NOT release the physical memory allocated for the unmapped page.
    147147 ****************************************************************************************
    148  * @ gpt       : [in] pointer on the page table
     148 * @ gpt       : [in] pointer on the local page table
    149149 * @ vpn       : [in] virtual page number
    150150 ***************************************************************************************/
  • trunk/hal/generic/hal_special.h

    r296 r401  
    118118
    119119/*****************************************************************************************
    120  * This forbids code reordering by the compiler.
     120 * This forbids code reordering accross this barrier by the compiler.
    121121 ****************************************************************************************/
    122122void hal_rdbar();
Note: See TracChangeset for help on using the changeset viewer.