Changeset a016b63 in mainline for arch/mips32/include/mm/tlb.h
- Timestamp:
- 2005-10-10T20:26:02Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a783ca4
- Parents:
- e0cdb7b6
- File:
-
- 1 edited
-
arch/mips32/include/mm/tlb.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/include/mm/tlb.h
re0cdb7b6 ra016b63 31 31 32 32 #include <arch/exception.h> 33 #include <typedefs.h> 33 34 34 35 #define TLB_SIZE 48 … … 41 42 #define PAGE_UNCACHED 2 42 43 #define PAGE_CACHEABLE_EXC_WRITE 5 44 45 typedef union entry_lo entry_lo_t; 46 typedef union entry_hi entry_hi_t; 47 typedef union page_mask page_mask_t; 48 typedef union index tlb_index_t; 43 49 44 50 union entry_lo { … … 54 60 }; 55 61 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)); 62 union 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 }; 65 70 66 71 union entry_hi { … … 90 95 __u32 value; 91 96 }; 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;97 97 98 98 /** Probe TLB for Matching Entry
Note:
See TracChangeset
for help on using the changeset viewer.
