Changeset 762a824 in mainline for arch/ppc32/include
- Timestamp:
- 2006-05-01T14:44:37Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 16dad032
- Parents:
- 0f27b4c
- Location:
- arch/ppc32/include
- Files:
-
- 8 edited
-
asm.h (modified) (5 diffs)
-
asm/regname.h (modified) (1 diff)
-
atomic.h (modified) (4 diffs)
-
barrier.h (modified) (1 diff)
-
byteorder.h (modified) (1 diff)
-
cpuid.h (modified) (1 diff)
-
exception.h (modified) (1 diff)
-
interrupt.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/include/asm.h
r0f27b4c r762a824 41 41 */ 42 42 static inline ipl_t interrupts_enable(void) { 43 ipl_t v ;43 ipl_t v = 0; 44 44 ipl_t tmp; 45 45 46 __asm__volatile (46 asm volatile ( 47 47 "mfmsr %0\n" 48 48 "mfmsr %1\n" … … 65 65 ipl_t tmp; 66 66 67 __asm__volatile (67 asm volatile ( 68 68 "mfmsr %0\n" 69 69 "mfmsr %1\n" … … 84 84 ipl_t tmp; 85 85 86 __asm__volatile (86 asm volatile ( 87 87 "mfmsr %1\n" 88 88 "rlwimi %0, %1, 0, 17, 15\n" … … 104 104 static inline ipl_t interrupts_read(void) { 105 105 ipl_t v; 106 __asm__ volatile ( 106 107 asm volatile ( 107 108 "mfmsr %0\n" 108 109 : "=r" (v) … … 121 122 __address v; 122 123 123 __asm__ volatile ("and %0, %%sp, %1\n" : "=r" (v) : "r" (~(STACK_SIZE-1))); 124 124 asm volatile ( 125 "and %0, %%sp, %1\n" 126 : "=r" (v) 127 : "r" (~(STACK_SIZE - 1)) 128 ); 125 129 return v; 126 130 } -
arch/ppc32/include/asm/regname.h
r0f27b4c r762a824 195 195 #define msr_ir (1 << 4) 196 196 #define msr_dr (1 << 5) 197 #define msr_pr (1 << 14) 198 #define msr_ee (1 << 15) 197 199 198 200 /* HID0 bits */ -
arch/ppc32/include/atomic.h
r0f27b4c r762a824 34 34 long tmp; 35 35 36 asm __volatile__(36 asm volatile ( 37 37 "1:\n" 38 38 "lwarx %0, 0, %2\n" … … 42 42 : "=&r" (tmp), "=m" (val->count) 43 43 : "r" (&val->count), "m" (val->count) 44 : "cc"); 44 : "cc" 45 ); 45 46 } 46 47 … … 49 50 long tmp; 50 51 51 asm __volatile__(52 asm volatile ( 52 53 "1:\n" 53 54 "lwarx %0, 0, %2\n" … … 57 58 : "=&r" (tmp), "=m" (val->count) 58 59 : "r" (&val->count), "m" (val->count) 59 : "cc"); 60 : "cc" 61 ); 60 62 } 61 63 -
arch/ppc32/include/barrier.h
r0f27b4c r762a824 30 30 #define __ppc32_BARRIER_H__ 31 31 32 #define CS_ENTER_BARRIER() __asm__volatile ("" ::: "memory")33 #define CS_LEAVE_BARRIER() __asm__volatile ("" ::: "memory")32 #define CS_ENTER_BARRIER() asm volatile ("" ::: "memory") 33 #define CS_LEAVE_BARRIER() asm volatile ("" ::: "memory") 34 34 35 #define memory_barrier() __asm__volatile ("sync" ::: "memory")36 #define read_barrier() __asm__volatile ("sync" ::: "memory")37 #define write_barrier() __asm__volatile ("eieio" ::: "memory")35 #define memory_barrier() asm volatile ("sync" ::: "memory") 36 #define read_barrier() asm volatile ("sync" ::: "memory") 37 #define write_barrier() asm volatile ("eieio" ::: "memory") 38 38 39 39 #endif -
arch/ppc32/include/byteorder.h
r0f27b4c r762a824 52 52 __address v; 53 53 54 __asm__ volatile ("lwbrx %0, %1, %2\n" : "=r" (v) : "i" (0) , "r" (&n)); 55 54 asm volatile ( 55 "lwbrx %0, %1, %2\n" 56 : "=r" (v) 57 : "i" (0), "r" (&n) 58 ); 56 59 return v; 57 60 } 61 58 62 #endif -
arch/ppc32/include/cpuid.h
r0f27b4c r762a824 39 39 static inline void cpu_version(struct cpu_info *info) 40 40 { 41 __asm__volatile (42 "mf spr %0, 287\n"41 asm volatile ( 42 "mfpvr %0\n" 43 43 : "=r" (*info) 44 44 ); -
arch/ppc32/include/exception.h
r0f27b4c r762a824 48 48 __u32 r10; 49 49 __u32 r11; 50 __u32 r12;51 50 __u32 r13; 52 51 __u32 r14; -
arch/ppc32/include/interrupt.h
r0f27b4c r762a824 30 30 #define __ppc32_INTERRUPT_H__ 31 31 32 #define IRQ_COUNT 1 /* TODO */ 33 32 #define IRQ_COUNT 1 34 33 #define IVT_ITEMS 15 35 34 #define INT_OFFSET 0
Note:
See TracChangeset
for help on using the changeset viewer.
