Changeset 38a1a84 in mainline for arch/mips32/include/mm/tlb.h
- Timestamp:
- 2005-10-05T21:29:16Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bca1b47
- Parents:
- 49c1f93
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips32/include/mm/tlb.h
r49c1f93 r38a1a84 48 48 unsigned c : 3; /* cache coherency attribute */ 49 49 unsigned pfn : 24; /* frame number */ 50 unsigned : 2; 50 unsigned zero: 2; /* zero */ 51 } __attribute__ ((packed)); 52 53 struct pte { 54 unsigned g : 1; /* global bit */ 55 unsigned v : 1; /* valid bit */ 56 unsigned d : 1; /* dirty/write-protect bit */ 57 unsigned c : 3; /* cache coherency attribute */ 58 unsigned pfn : 24; /* frame number */ 59 unsigned w : 1; /* writable */ 60 unsigned a : 1; /* accessed */ 51 61 } __attribute__ ((packed)); 52 62 … … 63 73 } __attribute__ ((packed)); 64 74 65 struct tlb_entry { 66 struct entry_lo lo0; 67 struct entry_lo lo1; 68 struct entry_hi hi; 69 struct page_mask mask; 75 struct index { 76 unsigned index : 4; 77 unsigned : 27; 78 unsigned p : 1; 70 79 } __attribute__ ((packed)); 80 81 /** Probe TLB for Matching Entry 82 * 83 * Probe TLB for Matching Entry. 84 */ 85 static inline void tlbp(void) 86 { 87 __asm__ volatile ("tlbp\n\t"); 88 } 71 89 72 90
Note:
See TracChangeset
for help on using the changeset viewer.