Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/mm/page.h

    r98000fb r7a0359b  
    3737
    3838#include <arch/mm/frame.h>
     39#include <trace.h>
    3940
    4041#define PAGE_WIDTH      FRAME_WIDTH
     
    141142#include <arch/exception.h>
    142143
    143 static inline int get_pt_flags(pte_t *pt, size_t i)
     144/** Page Table Entry. */
     145typedef struct {
     146        unsigned g : 1;                 /**< Global bit. */
     147        unsigned p : 1;                 /**< Present bit. */
     148        unsigned d : 1;                 /**< Dirty bit. */
     149        unsigned cacheable : 1;         /**< Cacheable bit. */
     150        unsigned : 1;                   /**< Unused. */
     151        unsigned soft_valid : 1;        /**< Valid content even if not present. */
     152        unsigned pfn : 24;              /**< Physical frame number. */
     153        unsigned w : 1;                 /**< Page writable bit. */
     154        unsigned a : 1;                 /**< Accessed bit. */
     155} pte_t;
     156
     157
     158NO_TRACE static inline unsigned int get_pt_flags(pte_t *pt, size_t i)
    144159{
    145160        pte_t *p = &pt[i];
     
    154169}
    155170
    156 static inline void set_pt_flags(pte_t *pt, size_t i, int flags)
     171NO_TRACE static inline void set_pt_flags(pte_t *pt, size_t i, int flags)
    157172{
    158173        pte_t *p = &pt[i];
Note: See TracChangeset for help on using the changeset viewer.