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


Ignore:
Timestamp:
2007-01-28T13:25:49Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8e8c1a5
Parents:
1ba41c5
Message:

huge type system cleanup
remove cyclical type dependencies across multiple header files
many minor coding style fixes

File:
1 edited

Legend:

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

    r1ba41c5 rb3f8fb7  
    3737
    3838#include <arch/exception.h>
    39 #include <typedefs.h>
    4039
    4140#ifdef TLBCNT
     
    5352#define PAGE_CACHEABLE_EXC_WRITE        5
    5453
    55 typedef union entry_lo entry_lo_t;
    56 typedef union entry_hi entry_hi_t;
    57 typedef union page_mask page_mask_t;
    58 typedef union index tlb_index_t;
    59 
    60 union entry_lo {
     54typedef union {
    6155        struct {
    6256#ifdef BIG_ENDIAN
     
    7771        } __attribute__ ((packed));
    7872        uint32_t value;
    79 };
     73} entry_lo_t;
    8074
    81 /** Page Table Entry. */
    82 struct pte {
    83         unsigned g : 1;                 /**< Global bit. */
    84         unsigned p : 1;                 /**< Present bit. */
    85         unsigned d : 1;                 /**< Dirty bit. */
    86         unsigned cacheable : 1;         /**< Cacheable bit. */
    87         unsigned : 1;                   /**< Unused. */
    88         unsigned soft_valid : 1;        /**< Valid content even if not present. */
    89         unsigned pfn : 24;              /**< Physical frame number. */
    90         unsigned w : 1;                 /**< Page writable bit. */
    91         unsigned a : 1;                 /**< Accessed bit. */
    92 };
    93 
    94 union entry_hi {
     75typedef union {
    9576        struct {
    9677#ifdef BIG_ENDIAN
     
    10586        } __attribute__ ((packed));
    10687        uint32_t value;
    107 };
     88} entry_hi_t;
    10889
    109 union page_mask {
     90typedef union {
    11091        struct {
    11192#ifdef BIG_ENDIAN
     
    120101        } __attribute__ ((packed));
    121102        uint32_t value;
    122 };
     103} page_mask_t;
    123104
    124 union index {
     105typedef union {
    125106        struct {
    126107#ifdef BIG_ENDIAN
     
    135116        } __attribute__ ((packed));
    136117        uint32_t value;
    137 };
     118} tlb_index_t;
    138119
    139120/** Probe TLB for Matching Entry
Note: See TracChangeset for help on using the changeset viewer.