Changes in kernel/arch/ppc32/include/mm/tlb.h [5954241:0867321] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/include/mm/tlb.h
r5954241 r0867321 27 27 */ 28 28 29 /** @addtogroup ppc32mm 29 /** @addtogroup ppc32mm 30 30 * @{ 31 31 */ … … 37 37 38 38 #include <arch/interrupt.h> 39 #include <arch/types.h> 39 40 #include <typedefs.h> 40 41 … … 45 46 46 47 typedef struct { 47 unsigned intv : 1; /**< Valid */48 unsigned intvsid : 24; /**< Virtual Segment ID */49 unsigned inth : 1; /**< Primary/secondary hash */50 unsigned intapi : 6; /**< Abbreviated Page Index */51 unsigned intrpn : 20; /**< Real Page Number */52 unsigned intreserved0 : 3;53 unsigned intr : 1; /**< Reference */54 unsigned intc : 1; /**< Change */55 unsigned intwimg : 4; /**< Access control */56 unsigned intreserved1 : 1;57 unsigned intpp : 2; /**< Page protection */48 unsigned v : 1; /**< Valid */ 49 unsigned vsid : 24; /**< Virtual Segment ID */ 50 unsigned h : 1; /**< Primary/secondary hash */ 51 unsigned api : 6; /**< Abbreviated Page Index */ 52 unsigned rpn : 20; /**< Real Page Number */ 53 unsigned reserved0 : 3; 54 unsigned r : 1; /**< Reference */ 55 unsigned c : 1; /**< Change */ 56 unsigned wimg : 4; /**< Access control */ 57 unsigned reserved1 : 1; 58 unsigned pp : 2; /**< Page protection */ 58 59 } phte_t; 59 60 60 61 typedef struct { 61 unsigned intv : 1;62 unsigned intvsid : 24;63 unsigned intreserved0 : 1;64 unsigned intapi : 6;62 unsigned v : 1; 63 unsigned vsid : 24; 64 unsigned reserved0 : 1; 65 unsigned api : 6; 65 66 } ptehi_t; 66 67 67 68 typedef struct { 68 unsigned intrpn : 20;69 unsigned intxpn : 3;70 unsigned intreserved0 : 1;71 unsigned intc : 1;72 unsigned intwimg : 4;73 unsigned intx : 1;74 unsigned intpp : 2;69 unsigned rpn : 20; 70 unsigned xpn : 3; 71 unsigned reserved0 : 1; 72 unsigned c : 1; 73 unsigned wimg : 4; 74 unsigned x : 1; 75 unsigned pp : 2; 75 76 } ptelo_t; 76 77 77 78 extern void pht_init(void); 78 extern void pht_refill(unsigned int, istate_t *); 79 80 extern bool pht_refill_real(unsigned int, istate_t *) 81 __attribute__ ((section("K_UNMAPPED_TEXT_START"))); 82 extern void tlb_refill_real(unsigned int, uint32_t, ptehi_t, ptelo_t, 83 istate_t *) __attribute__ ((section("K_UNMAPPED_TEXT_START"))); 79 extern void pht_refill(int n, istate_t *istate); 80 extern bool pht_refill_real(int n, istate_t *istate) __attribute__ ((section("K_UNMAPPED_TEXT_START"))); 81 extern void tlb_refill_real(int n, uint32_t tlbmiss, ptehi_t ptehi, ptelo_t ptelo, istate_t *istate) __attribute__ ((section("K_UNMAPPED_TEXT_START"))); 84 82 85 83 #endif
Note:
See TracChangeset
for help on using the changeset viewer.