Rev 418 | Rev 501 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 418 | Rev 426 | ||
---|---|---|---|
Line 76... | Line 76... | ||
76 | * The stack is assumed to be STACK_SIZE bytes long. |
76 | * The stack is assumed to be STACK_SIZE bytes long. |
77 | * The stack must start on page boundary. |
77 | * The stack must start on page boundary. |
78 | */ |
78 | */ |
79 | static inline __address get_stack_base(void) |
79 | static inline __address get_stack_base(void) |
80 | { |
80 | { |
- | 81 | __address v; |
|
- | 82 | ||
- | 83 | __asm__ volatile ("and %%o6, %1, %0\n" : "=r" (v) : "r" (~(STACK_SIZE-1))); |
|
- | 84 | ||
- | 85 | return v; |
|
81 | } |
86 | } |
82 | 87 | ||
83 | void cpu_halt(void); |
88 | void cpu_halt(void); |
84 | void cpu_sleep(void); |
89 | void cpu_sleep(void); |
85 | void asm_delay_loop(__u32 t); |
90 | void asm_delay_loop(__u32 t); |