Changeset 35f3b8c in mainline for arch/ppc32/include
- Timestamp:
- 2006-05-18T23:24:40Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c0bc189
- Parents:
- 8424198
- Location:
- arch/ppc32/include
- Files:
-
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/include/asm.h
r8424198 r35f3b8c 141 141 void cpu_halt(void); 142 142 void asm_delay_loop(__u32 t); 143 void invalidate_bat(void); 143 144 144 145 extern void userspace_asm(__address uspace_uarg, __address stack, __address entry); -
arch/ppc32/include/asm/regname.h
r8424198 r35f3b8c 190 190 #define sprg3 275 191 191 #define prv 287 192 #define ibat0u 528 193 #define ibat0l 529 194 #define ibat1u 530 195 #define ibat1l 531 196 #define ibat2u 532 197 #define ibat2l 533 198 #define ibat3u 534 199 #define ibat3l 535 200 #define dbat0u 536 201 #define dbat0l 537 202 #define dbat1u 538 203 #define dbat1l 539 204 #define dbat2u 540 205 #define dbat2l 541 206 #define dbat3u 542 207 #define dbat3l 543 192 208 #define hid0 1008 193 209 -
arch/ppc32/include/mm/frame.h
r8424198 r35f3b8c 36 36 #ifndef __ASM__ 37 37 38 #include <arch/types.h> 39 40 extern __address last_frame; 41 38 42 extern void frame_arch_init(void); 39 43 -
arch/ppc32/include/mm/page.h
r8424198 r35f3b8c 109 109 (1 << PAGE_READ_SHIFT) | 110 110 (1 << PAGE_WRITE_SHIFT) | 111 (1 << PAGE_EXEC_SHIFT) 111 (1 << PAGE_EXEC_SHIFT) | 112 (p->g << PAGE_GLOBAL_SHIFT) 112 113 ); 113 114 } … … 118 119 119 120 p->p = !(flags & PAGE_NOT_PRESENT); 121 p->g = (flags & PAGE_GLOBAL) != 0; 120 122 p->valid = 1; 121 123 } 122 124 123 125 extern void page_arch_init(void); 126 127 #define PHT_BITS 16 128 #define PHT_ORDER 4 129 130 typedef struct { 131 unsigned v : 1; /**< Valid */ 132 unsigned vsid : 24; /**< Virtual Segment ID */ 133 unsigned h : 1; /**< Primary/secondary hash */ 134 unsigned api : 6; /**< Abbreviated Page Index */ 135 unsigned rpn : 20; /**< Real Page Number */ 136 unsigned reserved0 : 3; 137 unsigned r : 1; /**< Reference */ 138 unsigned c : 1; /**< Change */ 139 unsigned wimg : 4; /**< Access control */ 140 unsigned reserved1 : 1; 141 unsigned pp : 2; /**< Page protection */ 142 } phte_t; 143 144 extern void pht_refill(bool data, istate_t *istate); 145 extern void pht_init(void); 124 146 125 147 #endif /* __ASM__ */ -
arch/ppc32/include/mm/tlb.h
r8424198 r35f3b8c 30 30 #define __ppc32_TLB_H__ 31 31 32 #include <arch/exception.h>33 #include <typedefs.h>34 35 #define PHT_BITS 1636 #define PHT_ORDER 437 38 typedef struct {39 unsigned v : 1; /**< Valid */40 unsigned vsid : 24; /**< Virtual Segment ID */41 unsigned h : 1; /**< Primary/secondary hash */42 unsigned api : 6; /**< Abbreviated Page Index */43 unsigned rpn : 20; /**< Real Page Number */44 unsigned reserved0 : 3;45 unsigned r : 1; /**< Reference */46 unsigned c : 1; /**< Change */47 unsigned wimg : 4; /**< Access control */48 unsigned reserved1 : 1;49 unsigned pp : 2; /**< Page protection */50 } phte_t;51 52 extern void pht_refill(bool data, istate_t *istate);53 32 54 33 #endif -
arch/ppc32/include/types.h
r8424198 r35f3b8c 53 53 unsigned p : 1; /**< Present bit. */ 54 54 unsigned a : 1; /**< Accessed bit. */ 55 unsigned g : 1; /**< Global bit. */ 55 56 unsigned valid : 1; /**< Valid content even if not present. */ 56 57 unsigned pfn : 20; /**< Physical frame number. */
Note:
See TracChangeset
for help on using the changeset viewer.