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


Ignore:
Timestamp:
2005-10-05T21:29:16Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bca1b47
Parents:
49c1f93
Message:

MIPS32 memory management work.
Fix some bugs introduced yesterday (PTL3 index is indeed calculated by >> 14).
Introduce two new bits in pte_t (i.e. 'a' and 'w').
Implement TLB Invalid Exception and TLB Modified Exception. (Needs review and testing)

File:
1 edited

Legend:

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

    r49c1f93 r38a1a84  
    4848        unsigned c : 3;         /* cache coherency attribute */
    4949        unsigned pfn : 24;      /* frame number */
    50         unsigned : 2;
     50        unsigned zero: 2;       /* zero */
     51} __attribute__ ((packed));
     52
     53struct 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 */
    5161} __attribute__ ((packed));
    5262
     
    6373} __attribute__ ((packed));
    6474
    65 struct tlb_entry {
    66         struct entry_lo lo0;
    67         struct entry_lo lo1;
    68         struct entry_hi hi;
    69         struct page_mask mask;
     75struct index {
     76        unsigned index : 4;
     77        unsigned : 27;
     78        unsigned p : 1;
    7079} __attribute__ ((packed));
     80
     81/** Probe TLB for Matching Entry
     82 *
     83 * Probe TLB for Matching Entry.
     84 */
     85static inline void tlbp(void)
     86{
     87        __asm__ volatile ("tlbp\n\t");
     88}
    7189
    7290
Note: See TracChangeset for help on using the changeset viewer.