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