Changeset 096d11e5 in mainline
- Timestamp:
- 2005-12-22T11:09:02Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2cf5634
- Parents:
- d53aba3f
- Location:
- arch/sparc64/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/include/asm.h
rd53aba3f r096d11e5 57 57 } 58 58 59 /** Read TICK_compare Register. 60 * 61 * @return Value of TICK_comapre register. 62 */ 63 static inline __u64 tick_compare_read(void) 64 { 65 __u64 v; 66 67 __asm__ volatile ("rd %%tick_cmpr, %0\n" : "=r" (v)); 68 69 return v; 70 } 71 72 /** Write TICK_compare Register. 73 * 74 * @param New value of TICK_comapre register. 75 */ 76 static inline void tick_compare_write(__u64 v) 77 { 78 __asm__ volatile ("wr %0, %1, %%tick_cmpr\n" : : "r" (v), "i" (0)); 79 } 80 81 /** Read TICK Register. 82 * 83 * @return Value of TICK register. 84 */ 85 static inline __u64 tick_read(void) 86 { 87 __u64 v; 88 89 __asm__ volatile ("rdpr %%tick, %0\n" : "=r" (v)); 90 91 return v; 92 } 93 94 /** Write TICK Register. 95 * 96 * @param New value of TICK register. 97 */ 98 static inline void tick_write(__u64 v) 99 { 100 __asm__ volatile ("wrpr %0, %1, %%tick\n" : : "r" (v), "i" (0)); 101 } 102 59 103 60 104 /** Enable interrupts. … … 197 241 } 198 242 243 244 199 245 void cpu_halt(void); 200 246 void cpu_sleep(void); -
arch/sparc64/include/mm/mmu.h
rd53aba3f r096d11e5 104 104 105 105 /** Disable or Enable IMMU. */ 106 static inline immu_set(bool enable)106 static inline void immu_set(bool enable) 107 107 { 108 108 lsu_cr_reg_t cr; … … 115 115 116 116 /** Disable or Enable DMMU. */ 117 static inline dmmu_set(bool enable)117 static inline void dmmu_set(bool enable) 118 118 { 119 119 lsu_cr_reg_t cr; -
arch/sparc64/include/mm/tlb.h
rd53aba3f r096d11e5 115 115 * @param value Value to be written. 116 116 */ 117 static inline __u64itlb_data_access_write(index_t entry, __u64 value)117 static inline void itlb_data_access_write(index_t entry, __u64 value) 118 118 { 119 119 tlb_data_access_addr_t reg; … … 145 145 * @param value Value to be written. 146 146 */ 147 static inline __u64dtlb_data_access_write(index_t entry, __u64 value)147 static inline void dtlb_data_access_write(index_t entry, __u64 value) 148 148 { 149 149 tlb_data_access_addr_t reg; -
arch/sparc64/include/register.h
rd53aba3f r096d11e5 37 37 struct { 38 38 __u16 manuf; /**< Manufacturer code. */ 39 __u16 impl; 39 __u16 impl; /**< Implementation code. */ 40 40 __u8 mask; /**< Mask set revision. */ 41 41 unsigned : 8; … … 67 67 typedef union pstate_reg pstate_reg_t; 68 68 69 /** TICK Register. */ 70 union tick_reg { 71 __u64 value; 72 struct { 73 unsigned npt : 1; /**< Non-privileged Trap enable. */ 74 __u64 counter : 63; /**< Elapsed CPU clck cycle counter. */ 75 } __attribute__ ((packed)); 76 }; 77 typedef union tick_reg tick_reg_t; 78 79 /** TICK_compare Register. */ 80 union tick_compare_reg { 81 __u64 value; 82 struct { 83 unsigned int_dis : 1; /**< TICK_INT interrupt enable. */ 84 __u64 tick_cmpr : 63; /**< Compare value for TICK interrupts. */ 85 } __attribute__ ((packed)); 86 }; 87 typedef union tick_compare_reg tick_compare_reg_t; 88 69 89 #endif
Note:
See TracChangeset
for help on using the changeset viewer.