Rev 987 | Rev 1220 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 987 | Rev 1007 | ||
---|---|---|---|
Line 118... | Line 118... | ||
118 | */ |
118 | */ |
119 | static inline __address get_stack_base(void) |
119 | static inline __address get_stack_base(void) |
120 | { |
120 | { |
121 | __address v; |
121 | __address v; |
122 | 122 | ||
123 | __asm__ volatile ("and %0, %%r1, %1\n" : "=r" (v) : "r" (~(STACK_SIZE-1))); |
123 | __asm__ volatile ("and %0, %%sp, %1\n" : "=r" (v) : "r" (~(STACK_SIZE-1))); |
124 | 124 | ||
125 | return v; |
125 | return v; |
126 | } |
126 | } |
127 | 127 | ||
- | 128 | static inline void cpu_sleep(void) |
|
- | 129 | { |
|
- | 130 | } |
|
- | 131 | ||
128 | void cpu_halt(void); |
132 | void cpu_halt(void); |
129 | void cpu_sleep(void); |
- | |
130 | void asm_delay_loop(__u32 t); |
133 | void asm_delay_loop(__u32 t); |
131 | 134 | ||
132 | #endif |
135 | #endif |