Changeset e7b7be3f in mainline for kernel/arch/mips32/include
- Timestamp:
- 2007-01-22T13:10:08Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0f3fc9b
- Parents:
- 62c63fc
- Location:
- kernel/arch/mips32/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/include/asm.h
r62c63fc re7b7be3f 44 44 { 45 45 /* Most of the simulators do not support */ 46 /* __asm__volatile ("wait"); */46 /* asm volatile ("wait"); */ 47 47 } 48 48 … … 57 57 uintptr_t v; 58 58 59 __asm__volatile ("and %0, $29, %1\n" : "=r" (v) : "r" (~(STACK_SIZE-1)));59 asm volatile ("and %0, $29, %1\n" : "=r" (v) : "r" (~(STACK_SIZE-1))); 60 60 61 61 return v; -
kernel/arch/mips32/include/atomic.h
r62c63fc re7b7be3f 56 56 long tmp, v; 57 57 58 __asm__volatile (58 asm volatile ( 59 59 "1:\n" 60 60 " ll %0, %1\n" -
kernel/arch/mips32/include/barrier.h
r62c63fc re7b7be3f 39 39 * TODO: implement true MIPS memory barriers for macros below. 40 40 */ 41 #define CS_ENTER_BARRIER() __asm__volatile ("" ::: "memory")42 #define CS_LEAVE_BARRIER() __asm__volatile ("" ::: "memory")41 #define CS_ENTER_BARRIER() asm volatile ("" ::: "memory") 42 #define CS_LEAVE_BARRIER() asm volatile ("" ::: "memory") 43 43 44 #define memory_barrier() __asm__volatile ("" ::: "memory")45 #define read_barrier() __asm__volatile ("" ::: "memory")46 #define write_barrier() __asm__volatile ("" ::: "memory")44 #define memory_barrier() asm volatile ("" ::: "memory") 45 #define read_barrier() asm volatile ("" ::: "memory") 46 #define write_barrier() asm volatile ("" ::: "memory") 47 47 48 48 #endif -
kernel/arch/mips32/include/mm/tlb.h
r62c63fc re7b7be3f 143 143 static inline void tlbp(void) 144 144 { 145 __asm__volatile ("tlbp\n\t");145 asm volatile ("tlbp\n\t"); 146 146 } 147 147 … … 153 153 static inline void tlbr(void) 154 154 { 155 __asm__volatile ("tlbr\n\t");155 asm volatile ("tlbr\n\t"); 156 156 } 157 157 … … 162 162 static inline void tlbwi(void) 163 163 { 164 __asm__volatile ("tlbwi\n\t");164 asm volatile ("tlbwi\n\t"); 165 165 } 166 166 … … 171 171 static inline void tlbwr(void) 172 172 { 173 __asm__volatile ("tlbwr\n\t");173 asm volatile ("tlbwr\n\t"); 174 174 } 175 175
Note:
See TracChangeset
for help on using the changeset viewer.