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


Ignore:
Timestamp:
2005-10-10T20:26:02Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a783ca4
Parents:
e0cdb7b6
Message:

Small improvement in pte_t type definition.

File:
1 edited

Legend:

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

    re0cdb7b6 ra016b63  
    3131
    3232#include <arch/exception.h>
     33#include <typedefs.h>
    3334
    3435#define TLB_SIZE        48
     
    4142#define PAGE_UNCACHED                   2
    4243#define PAGE_CACHEABLE_EXC_WRITE        5
     44
     45typedef union entry_lo entry_lo_t;
     46typedef union entry_hi entry_hi_t;
     47typedef union page_mask page_mask_t;
     48typedef union index tlb_index_t;
    4349
    4450union entry_lo {
     
    5460};
    5561
    56 struct pte {
    57         unsigned g : 1;         /* global bit */
    58         unsigned v : 1;         /* valid bit */
    59         unsigned d : 1;         /* dirty/write-protect bit */
    60         unsigned c : 3;         /* cache coherency attribute */
    61         unsigned pfn : 24;      /* frame number */
    62         unsigned w : 1;         /* writable */
    63         unsigned a : 1;         /* accessed */
    64 } __attribute__ ((packed));
     62union pte {
     63        entry_lo_t lo;
     64        struct {
     65                unsigned : 30;
     66                unsigned w : 1;         /* writable */
     67                unsigned a : 1;         /* accessed */
     68        } __attribute__ ((packed));
     69};
    6570
    6671union entry_hi {
     
    9095        __u32 value;
    9196};
    92 
    93 typedef union entry_lo entry_lo_t;
    94 typedef union entry_hi entry_hi_t;
    95 typedef union page_mask page_mask_t;
    96 typedef union index tlb_index_t;
    9797
    9898/** Probe TLB for Matching Entry
Note: See TracChangeset for help on using the changeset viewer.