Changeset 0882a9a in mainline for arch/mips32/include/mm/tlb.h


Ignore:
Timestamp:
2006-02-10T16:11:14Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ecbdc724
Parents:
d0a0f12
Message:

Make use of one unused bit in PTE formats of amd64, ia32 and mips32 to store 1 in valid mappings.
This helps to distinguish valid entries from not present entries with 0 content (i.e. not present
entries with PFN 0 and other bits cleared).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/include/mm/tlb.h

    rd0a0f12 r0882a9a  
    6464};
    6565
    66 union pte {
    67         entry_lo_t lo;
    68         struct {
    69                 unsigned : 30;
    70                 unsigned w : 1;         /* writable */
    71                 unsigned a : 1;         /* accessed */
    72         } __attribute__ ((packed));
     66/** Page Table Entry. */
     67struct pte {
     68        unsigned g : 1;                 /**< Global bit. */
     69        unsigned p : 1;                 /**< Present bit. */
     70        unsigned d : 1;                 /**< Dirty bit. */
     71        unsigned cacheable : 1;         /**< Cacheable bit. */
     72        unsigned : 1;                   /**< Unused. */
     73        unsigned soft_valid : 1;        /**< Valid content even if not present. */
     74        unsigned pfn : 24;              /**< Physical frame number. */
     75        unsigned w : 1;                 /**< Page writable bit. */
     76        unsigned a : 1;                 /**< Accessed bit. */
    7377};
    7478
Note: See TracChangeset for help on using the changeset viewer.